Chengyu Fan | cfb80c7 | 2015-10-19 16:50:04 -0600 | [diff] [blame] | 1 | # Please refer to https://logging.apache.org/log4cxx/usage.html for option details |
Chengyu Fan | 71b712b | 2015-09-09 22:13:56 -0600 | [diff] [blame] | 2 | |
Chengyu Fan | cfb80c7 | 2015-10-19 16:50:04 -0600 | [diff] [blame] | 3 | log4j.rootLogger=INFO, rootConsoleAppender, rootFileAppender |
Chengyu Fan | 71b712b | 2015-09-09 22:13:56 -0600 | [diff] [blame] | 4 | |
Chengyu Fan | cfb80c7 | 2015-10-19 16:50:04 -0600 | [diff] [blame] | 5 | # rootConsoleAppender prints out messages to console |
| 6 | log4j.appender.rootConsoleAppender=org.apache.log4j.ConsoleAppender |
| 7 | log4j.appender.rootConsoleAppender.layout=org.apache.log4j.PatternLayout |
| 8 | log4j.appender.rootConsoleAppender.layout.ConversionPattern=%d %-5p [%c] - %m%n |
Chengyu Fan | 71b712b | 2015-09-09 22:13:56 -0600 | [diff] [blame] | 9 | |
Chengyu Fan | cfb80c7 | 2015-10-19 16:50:04 -0600 | [diff] [blame] | 10 | # rootFileAppender dumps messages to a file |
| 11 | #log4j.appender.rootFileAppender=org.apache.log4j.FileAppender |
| 12 | log4j.appender.rootFileAppender=org.apache.log4j.RollingFileAppender |
| 13 | log4j.appender.rootFileAppender.layout=org.apache.log4j.PatternLayout |
| 14 | log4j.appender.rootFileAppender.layout.ConversionPattern=%d %-5p [%c] - %m%n |
| 15 | log4j.appender.rootFileAppender.File=catalog.log |
| 16 | log4j.appender.rootFileAppender.MaxFileSize=100KB |
Chengyu Fan | 71b712b | 2015-09-09 22:13:56 -0600 | [diff] [blame] | 17 | |
Chengyu Fan | cfb80c7 | 2015-10-19 16:50:04 -0600 | [diff] [blame] | 18 | # Change the log level (INFO, DEBUG, etc.) here |
| 19 | log4j.logger.QueryAdapter=INFO |
| 20 | log4j.logger.PublishAdapter=INFO |
Chengyu Fan | 71b712b | 2015-09-09 22:13:56 -0600 | [diff] [blame] | 21 | |