logger.conf.sample 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. ;
  2. ; Logging Configuration
  3. ;
  4. ; In this file, you configure logging to files or to
  5. ; the syslog system.
  6. ;
  7. ; "logger reload" at the CLI will reload configuration
  8. ; of the logging system.
  9. [general]
  10. ;
  11. ; Customize the display of debug message time stamps
  12. ; this example is the ISO 8601 date format (yyyy-mm-dd HH:MM:SS)
  13. ;
  14. ; see strftime(3) Linux manual for format specifiers. Note that there is also
  15. ; a fractional second parameter which may be used in this field. Use %1q
  16. ; for tenths, %2q for hundredths, etc.
  17. ;
  18. ;dateformat=%F %T ; ISO 8601 date format
  19. ;dateformat=%F %T.%3q ; with milliseconds
  20. ;
  21. ; This appends the hostname to the name of the log files.
  22. ;appendhostname = yes
  23. ;
  24. ; This determines whether or not we log queue events to a file
  25. ; (defaults to yes).
  26. ;queue_log = no
  27. ;
  28. ; Determines whether the queue_log always goes to a file, even
  29. ; when a realtime backend is present (defaults to no).
  30. ;queue_log_to_file = yes
  31. ;
  32. ; Set the queue_log filename
  33. ; (defaults to queue_log)
  34. ;queue_log_name = queue_log
  35. ;
  36. ; Log rotation strategy:
  37. ; sequential: Rename archived logs in order, such that the newest
  38. ; has the highest sequence number [default]. When
  39. ; exec_after_rotate is set, ${filename} will specify
  40. ; the new archived logfile.
  41. ; rotate: Rotate all the old files, such that the oldest has the
  42. ; highest sequence number [this is the expected behavior
  43. ; for Unix administrators]. When exec_after_rotate is
  44. ; set, ${filename} will specify the original root filename.
  45. ; timestamp: Rename the logfiles using a timestamp instead of a
  46. ; sequence number when "logger rotate" is executed.
  47. ; When exec_after_rotate is set, ${filename} will
  48. ; specify the new archived logfile.
  49. ;rotatestrategy = rotate
  50. ;
  51. ; Run a system command after rotating the files. This is mainly
  52. ; useful for rotatestrategy=rotate. The example allows the last
  53. ; two archive files to remain uncompressed, but after that point,
  54. ; they are compressed on disk.
  55. ;
  56. ; exec_after_rotate=gzip -9 ${filename}.2
  57. ;
  58. ;
  59. ; For each file, specify what to log.
  60. ;
  61. ; For console logging, you set options at start of
  62. ; Asterisk with -v for verbose and -d for debug
  63. ; See 'asterisk -h' for more information.
  64. ;
  65. ; Directory for log files is configures in asterisk.conf
  66. ; option astlogdir
  67. ;
  68. [logfiles]
  69. ;
  70. ; Format is "filename" and then "levels" of debugging to be included:
  71. ; debug
  72. ; notice
  73. ; warning
  74. ; error
  75. ; verbose
  76. ; dtmf
  77. ; fax
  78. ; security
  79. ;
  80. ; Special filename "console" represents the system console
  81. ;
  82. ; Filenames can either be relative to the standard Asterisk log directory
  83. ; (see 'astlogdir' in asterisk.conf), or absolute paths that begin with
  84. ; '/'.
  85. ;
  86. ; Special level name "*" means all levels, even dynamic levels registered
  87. ; by modules after the logger has been initialized (this means that loading
  88. ; and unloading modules that create/remove dynamic logger levels will result
  89. ; in these levels being included on filenames that have a level name of "*",
  90. ; without any need to perform a 'logger reload' or similar operation). Note
  91. ; that there is no value in specifying both "*" and specific level names for
  92. ; a filename; the "*" level means all levels, and the remaining level names
  93. ; will be ignored.
  94. ;
  95. ; We highly recommend that you DO NOT turn on debug mode if you are simply
  96. ; running a production system. Debug mode turns on a LOT of extra messages,
  97. ; most of which you are unlikely to understand without an understanding of
  98. ; the underlying code. Do NOT report debug messages as code issues, unless
  99. ; you have a specific issue that you are attempting to debug. They are
  100. ; messages for just that -- debugging -- and do not rise to the level of
  101. ; something that merit your attention as an Asterisk administrator. Debug
  102. ; messages are also very verbose and can and do fill up logfiles quickly;
  103. ; this is another reason not to have debug mode on a production system unless
  104. ; you are in the process of debugging a specific issue.
  105. ;
  106. ;debug => debug
  107. ;security => security
  108. console => notice,warning,error
  109. ;console => notice,warning,error,debug
  110. messages => notice,warning,error
  111. ;full => notice,warning,error,debug,verbose,dtmf,fax
  112. ;syslog keyword : This special keyword logs to syslog facility
  113. ;
  114. ;syslog.local0 => notice,warning,error
  115. ;