what is the command to write your logging information into a file?
Answer Posted / 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 |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category