Advertisement
Guest User

Untitled

a guest
Nov 13th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.50 KB | None | 0 0
  1. #------------------------------------------------------------------------------
  2. #
  3. #  The following properties set the logging levels and log appender.  The
  4. #  log4j.rootCategory variable defines the default log level and one or more
  5. #  appenders.  For the console, use 'S'.  For the daily rolling file, use 'R'.
  6. #  For an HTML formatted log, use 'H'.
  7. #
  8. #  To override the default (rootCategory) log level, define a property of the
  9. #  form (see below for available values):
  10. #
  11. #        log4j.logger. =
  12. #
  13. #    Available logger names:
  14. #      TODO
  15. #
  16. #    Possible Log Levels:
  17. #      FATAL, ERROR, WARN, INFO, DEBUG
  18. #
  19. #------------------------------------------------------------------------------
  20.  
  21. #log4j.rootCategory=FATAL, S, R
  22. #log4j.rootCategory=ERROR, S, R
  23. #log4j.rootCategory=WARN, S, R
  24. log4j.rootCategory=INFO, S, R
  25. #log4j.rootCategory=DEBUG, S, R
  26.  
  27.  
  28. #------------------------------------------------------------------------------
  29. #
  30. #  The following properties configure the console (stdout) appender.
  31. #  See http://logging.apache.org/log4j/docs/api/index.html for details.
  32. #
  33. #------------------------------------------------------------------------------
  34. log4j.appender.S = org.apache.log4j.ConsoleAppender
  35. log4j.appender.S.layout = org.apache.log4j.PatternLayout
  36. log4j.appender.S.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n
  37.  
  38. #------------------------------------------------------------------------------
  39. #
  40. #  The following properties configure the Daily Rolling File appender.
  41. #  See http://logging.apache.org/log4j/docs/api/index.html for details.
  42. #
  43. #------------------------------------------------------------------------------
  44. log4j.appender.R = org.apache.log4j.DailyRollingFileAppender
  45. log4j.appender.R.File = logs/OAT.log
  46. log4j.appender.R.Append = true
  47. log4j.appender.R.DatePattern = '.'yyy-MM-dd
  48. log4j.appender.R.layout = org.apache.log4j.PatternLayout
  49. log4j.appender.R.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n
  50.  
  51. #------------------------------------------------------------------------------
  52. #
  53. #  The following properties configure the Rolling File appender in HTML.
  54. #  See http://logging.apache.org/log4j/docs/api/index.html for details.
  55. #
  56. #------------------------------------------------------------------------------
  57. log4j.appender.H = org.apache.log4j.RollingFileAppender
  58. log4j.appender.H.File = logs/OATlog.html
  59. log4j.appender.H.MaxFileSize = 100KB
  60. log4j.appender.H.Append = false
  61. log4j.appender.H.layout = org.apache.log4j.HTMLLayout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement