what is the command to write your logging information into a file?
Answer / Rishav Kumar
In Log4j, you can set the 'log4j.appender.console' property in your configuration file or code to use FileAppender instead of ConsoleAppender if you want to write log messages to a file. For example: `<appender name="File" class="org.apache.log4j.RollingFileAppender">`
| Is This Answer Correct ? | 0 Yes | 0 No |
what are the logging methods provided by logger class?
what are the other support objects in Log4j?
Explain why to use Apache Log4j?
what does WARN and TRACE level indicates in log4j?
why do you get multiple copies of the message in log file sometime?
what is Log4j?
what is layouts in log4j?
what are the different types of Appenders?
what are the system properties checked by log4j?
what is the best way to migrate from java.util logging to log4j?
Explain whether log4j is a thread safe?
what are the format characters used in log4j?