Advertisement
Viky__9

log4j

Oct 5th, 2021
2,346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Root logger option
  2. log4j.rootLogger=INFO, stdout, file
  3. #Redurect log messages to console
  4. #log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  5. #log4j.appender.stdout.Target=System.out
  6. #log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  7. #log4j.appender.stdout.layout.ConversionePattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
  8.  
  9. #Redirect messages to a file
  10. #log4j.appender.file=org.apache.log4j.RollingFileAppender
  11. #log4j.appender.NotConsole.fileName=/home/viktoriya/Scrivania/Library/src/main/webapp/fileName.log
  12. #log4j.appender.NotConsole.maxFileSize=20MB
  13. #log4j.appender.file.MaxBackupIndex=10
  14. #log4j.appender.file.layout=org.apache.log4j.PatternLayout
  15. #log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p [%t]: %m%n
  16. #output to tomcat appender
  17. #log4j.appender.file.File=${catalina.home}/logs/myapp.log
  18. #log4j.appender.file.MaxFileSize=10MB
  19. #log4j.appender.file.MaxBackupIndex=11
  20. #log4j.appender.file.layout=org.apache.log4j.PatternLayout
  21. #log4j.appender.file.layout.ConversionePattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
  22.  
  23. #Root logger option
  24. #log4j.rootLogger=DEBUG, stdout, file
  25. #log4j.rootLogger=INFO, stdout, file
  26. #log4J.rootLogger = FATAL, console
  27. #log4j.WSDetailedLogger = TRACE, WSDetailLog, console
  28. #log4j.WSAppLogger = INFO, WSAppLog, console
  29. #Redirect log
  30. log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  31. log4j.appender.stdout.Targhet=System.out
  32. log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  33. log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p [%t]: %m%n
  34.  
  35.  
  36. log4j.appender.file=org.apache.log4j.RollingFileAppender
  37. log4j.appender.file.File=log/file.log
  38. log4j.appender.file.MaxFileSize=5MB
  39. log4j.appender.file.MaxBackupIndex=10
  40. log4j.appender.file.layout=org.apache.log4j.PatternLayout
  41. log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p [%t]: %m%n
  42.  
  43.  
  44. #log4j.rootLogger=INFO, stdout
  45. # Console appender configuration
  46. #log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  47. #log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  48. #log4j.appender.stdout.layout.ConversionPattern=%d [%t] (%F:%L) %p %m%n
  49. log4j.appender.stdout.filter.b=org.apache.log4j.varia.LevelMatchFilter
  50. log4j.appender.stdout.filter.b.LevelToMatch=FATAL
  51. log4j.appender.stdout.filter.b.AcceptOnMatch=false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement