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 |
Explain whether a log output format can be customized?
what is layouts in log4j?
why do you get multiple copies of the message in log file sometime?
what are the system properties checked by log4j?
what are the other support objects in Log4j?
what are Appenders in Log4j?
Inside logger component what are the different log levels?
what are the different types of Appenders?
what does .class mean in log4j context?
what is the command to write your logging information into a file?
what is the role of filter in log4j?
what are the logging methods provided by logger class?