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 is the role of filter in log4j?
what is the command to write your logging information into a file?
what does .class mean in log4j context?
Explain why to use Apache Log4j?
In log4j how can you log into the database?
what is Log4j?
what does WARN and TRACE level indicates in log4j?
what are the two static methods for obtaining a logger object?
what is the best way to migrate from java.util logging to log4j?
what are the different types of Appenders?
what are the system properties checked by log4j?
how can you get multiple processes to log to the same file?