logger.conf.sample 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. ;
  22. ; This makes Asterisk write callids to log messages
  23. ; (defaults to yes)
  24. ;use_callids = no
  25. ;
  26. ; This appends the hostname to the name of the log files.
  27. ;appendhostname = yes
  28. ;
  29. ; This determines whether or not we log queue events to a file
  30. ; (defaults to yes).
  31. ;queue_log = no
  32. ;
  33. ; Determines whether the queue_log always goes to a file, even
  34. ; when a realtime backend is present (defaults to no).
  35. ;queue_log_to_file = yes
  36. ;
  37. ; Set the queue_log filename
  38. ; (defaults to queue_log)
  39. ;queue_log_name = queue_log
  40. ;
  41. ; When using realtime for the queue log, use GMT for the timestamp
  42. ; instead of localtime. The default of this option is 'no'.
  43. ;queue_log_realtime_use_gmt = yes
  44. ;
  45. ; Log rotation strategy:
  46. ; none: Do not perform any logrotation at all. You should make
  47. ; very sure to set up some external logrotate mechanism
  48. ; as the asterisk logs can get very large, very quickly.
  49. ; sequential: Rename archived logs in order, such that the newest
  50. ; has the highest sequence number [default]. When
  51. ; exec_after_rotate is set, ${filename} will specify
  52. ; the new archived logfile.
  53. ; rotate: Rotate all the old files, such that the oldest has the
  54. ; highest sequence number [this is the expected behavior
  55. ; for Unix administrators]. When exec_after_rotate is
  56. ; set, ${filename} will specify the original root filename.
  57. ; timestamp: Rename the logfiles using a timestamp instead of a
  58. ; sequence number when "logger rotate" is executed.
  59. ; When exec_after_rotate is set, ${filename} will
  60. ; specify the new archived logfile.
  61. ;rotatestrategy = rotate
  62. ;
  63. ; Run a system command after rotating the files. This is mainly
  64. ; useful for rotatestrategy=rotate. The example allows the last
  65. ; two archive files to remain uncompressed, but after that point,
  66. ; they are compressed on disk.
  67. ;
  68. ; exec_after_rotate=gzip -9 ${filename}.2
  69. ;
  70. ;
  71. ; For each file, specify what to log.
  72. ;
  73. ; For console logging, you set options at start of
  74. ; Asterisk with -v for verbose and -d for debug
  75. ; See 'asterisk -h' for more information.
  76. ;
  77. ; Directory for log files is configures in asterisk.conf
  78. ; option astlogdir
  79. ;
  80. ; All log messages go to a queue serviced by a single thread
  81. ; which does all the IO. This setting controls how big that
  82. ; queue can get (and therefore how much memory is allocated)
  83. ; before new messages are discarded.
  84. ; The default is 1000
  85. ;logger_queue_limit = 250
  86. ;
  87. ;
  88. [logfiles]
  89. ;
  90. ; Format is "filename" and then "levels" of debugging to be included:
  91. ; debug
  92. ; notice
  93. ; warning
  94. ; error
  95. ; verbose(<level>)
  96. ; dtmf
  97. ; fax
  98. ; security
  99. ;
  100. ; Special filename "console" represents the root console
  101. ;
  102. ; Filenames can either be relative to the standard Asterisk log directory
  103. ; (see 'astlogdir' in asterisk.conf), or absolute paths that begin with
  104. ; '/'.
  105. ;
  106. ; Verbose takes an optional argument, in the form of an integer level.
  107. ; Verbose messages with higher levels will not be logged to the file. If
  108. ; the verbose level is not specified, it will log verbose messages following
  109. ; the current level of the root console.
  110. ;
  111. ; Special level name "*" means all levels, even dynamic levels registered
  112. ; by modules after the logger has been initialized (this means that loading
  113. ; and unloading modules that create/remove dynamic logger levels will result
  114. ; in these levels being included on filenames that have a level name of "*",
  115. ; without any need to perform a 'logger reload' or similar operation).
  116. ; Note that there is no value in specifying both "*" and specific level names
  117. ; for a filename; the "*" level means all levels. The only exception is if
  118. ; you need to specify a specific verbose level. e.g, "verbose(3),*".
  119. ;
  120. ; We highly recommend that you DO NOT turn on debug mode if you are simply
  121. ; running a production system. Debug mode turns on a LOT of extra messages,
  122. ; most of which you are unlikely to understand without an understanding of
  123. ; the underlying code. Do NOT report debug messages as code issues, unless
  124. ; you have a specific issue that you are attempting to debug. They are
  125. ; messages for just that -- debugging -- and do not rise to the level of
  126. ; something that merit your attention as an Asterisk administrator. Debug
  127. ; messages are also very verbose and can and do fill up logfiles quickly;
  128. ; this is another reason not to have debug mode on a production system unless
  129. ; you are in the process of debugging a specific issue.
  130. ;
  131. ;debug => debug
  132. ;security => security
  133. console => notice,warning,error
  134. ;console => notice,warning,error,debug
  135. messages => notice,warning,error
  136. ;full => notice,warning,error,debug,verbose,dtmf,fax
  137. ;syslog keyword : This special keyword logs to syslog facility
  138. ;
  139. ;syslog.local0 => notice,warning,error
  140. ;