Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.56 KB | None | 0 0
  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.  
  10. [general]
  11. ;
  12. ; Customize the display of debug message time stamps
  13. ; this example is the ISO 8601 date format (yyyy-mm-dd HH:MM:SS)
  14. ;
  15. ; see strftime(3) Linux manual for format specifiers. Note that there is also
  16. ; a fractional second parameter which may be used in this field. Use %1q
  17. ; for tenths, %2q for hundredths, etc.
  18. ;
  19. ;dateformat=%F %T ; ISO 8601 date format
  20. ;dateformat=%F %T.%3q ; with milliseconds
  21. ;
  22. ;
  23. ; This makes Asterisk write callids to log messages
  24. ; (defaults to yes)
  25. ;use_callids = no
  26. ;
  27. ; This appends the hostname to the name of the log files.
  28. ;appendhostname = yes
  29. ;
  30. ; This determines whether or not we log queue events to a file
  31. ; (defaults to yes).
  32. ;queue_log = no
  33. ;
  34. ; Determines whether the queue_log always goes to a file, even
  35. ; when a realtime backend is present (defaults to no).
  36. ;queue_log_to_file = yes
  37. ;
  38. ; Set the queue_log filename
  39. ; (defaults to queue_log)
  40. ;queue_log_name = queue_log
  41. ;
  42. ; When using realtime for the queue log, use GMT for the timestamp
  43. ; instead of localtime. The default of this option is 'no'.
  44. ;queue_log_realtime_use_gmt = yes
  45. ;
  46. ; Log rotation strategy:
  47. ; none: Do not perform any logrotation at all. You should make
  48. ; very sure to set up some external logrotate mechanism
  49. ; as the asterisk logs can get very large, very quickly.
  50. ; sequential: Rename archived logs in order, such that the newest
  51. ; has the highest sequence number [default]. When
  52. ; exec_after_rotate is set, ${filename} will specify
  53. ; the new archived logfile.
  54. ; rotate: Rotate all the old files, such that the oldest has the
  55. ; highest sequence number [this is the expected behavior
  56. ; for Unix administrators]. When exec_after_rotate is
  57. ; set, ${filename} will specify the original root filename.
  58. ; timestamp: Rename the logfiles using a timestamp instead of a
  59. ; sequence number when "logger rotate" is executed.
  60. ; When exec_after_rotate is set, ${filename} will
  61. ; specify the new archived logfile.
  62. ;rotatestrategy = rotate
  63. ;
  64. ; Run a system command after rotating the files. This is mainly
  65. ; useful for rotatestrategy=rotate. The example allows the last
  66. ; two archive files to remain uncompressed, but after that point,
  67. ; they are compressed on disk.
  68. ;
  69. ; exec_after_rotate=gzip -9 ${filename}.2
  70. ;
  71. ;
  72. ; For each file, specify what to log.
  73. ;
  74. ; For console logging, you set options at start of
  75. ; Asterisk with -v for verbose and -d for debug
  76. ; See 'asterisk -h' for more information.
  77. ;
  78. ; Directory for log files is configures in asterisk.conf
  79. ; option astlogdir
  80. ;
  81. ; All log messages go to a queue serviced by a single thread
  82. ; which does all the IO. This setting controls how big that
  83. ; queue can get (and therefore how much memory is allocated)
  84. ; before new messages are discarded.
  85. ; The default is 1000
  86. ;logger_queue_limit = 250
  87. ;
  88. ;
  89. [logfiles]
  90. ;
  91. ; Format is:
  92. ;
  93. ; logger_name => [formatter]levels
  94. ;
  95. ; The name of the logger dictates not only the name of the logging
  96. ; channel, but also its type. Valid types are:
  97. ; - 'console' - The root console of Asterisk
  98. ; - 'syslog' - Linux syslog, with facilities specified afterwards with
  99. ; a period delimiter, e.g., 'syslog.local0'
  100. ; - 'filename' - The name of the log file to create. This is the default
  101. ; for log channels.
  102. ;
  103. ; Filenames can either be relative to the standard Asterisk log directory
  104. ; (see 'astlogdir' in asterisk.conf), or absolute paths that begin with
  105. ; '/'.
  106. ;
  107. ; An optional formatter can be specified prior to the log levels sent
  108. ; to the log channel. The formatter is defined immediately preceeding the
  109. ; levels, and is enclosed in square brackets. Valid formatters are:
  110. ; - [default] - The default formatter, this outputs log messages using a
  111. ; human readable format.
  112. ; - [json] - Log the output in JSON. Note that JSON formatted log entries,
  113. ; if specified for a logger type of 'console', will be formatted
  114. ; per the 'default' formatter for log messages of type VERBOSE.
  115. ; This is due to the remote consoles intepreting verbosity
  116. ; outside of the logging subsystem.
  117. ;
  118. ; Log levels include the following, and are specified in a comma delineated
  119. ; list:
  120. ; debug
  121. ; notice
  122. ; warning
  123. ; error
  124. ; verbose(<level>)
  125. ; dtmf
  126. ; fax
  127. ; security
  128. ;
  129. ; Verbose takes an optional argument, in the form of an integer level.
  130. ; Verbose messages with higher levels will not be logged to the file. If
  131. ; the verbose level is not specified, it will log verbose messages following
  132. ; the current level of the root console.
  133. ;
  134. ; Special level name "*" means all levels, even dynamic levels registered
  135. ; by modules after the logger has been initialized (this means that loading
  136. ; and unloading modules that create/remove dynamic logger levels will result
  137. ; in these levels being included on filenames that have a level name of "*",
  138. ; without any need to perform a 'logger reload' or similar operation).
  139. ; Note that there is no value in specifying both "*" and specific level names
  140. ; for a filename; the "*" level means all levels. The only exception is if
  141. ; you need to specify a specific verbose level. e.g, "verbose(3),*".
  142. ;
  143. ; We highly recommend that you DO NOT turn on debug mode if you are simply
  144. ; running a production system. Debug mode turns on a LOT of extra messages,
  145. ; most of which you are unlikely to understand without an understanding of
  146. ; the underlying code. Do NOT report debug messages as code issues, unless
  147. ; you have a specific issue that you are attempting to debug. They are
  148. ; messages for just that -- debugging -- and do not rise to the level of
  149. ; something that merit your attention as an Asterisk administrator. Debug
  150. ; messages are also very verbose and can and do fill up logfiles quickly;
  151. ; this is another reason not to have debug mode on a production system unless
  152. ; you are in the process of debugging a specific issue.
  153. ;
  154. ;debug => debug
  155. ;security => security
  156. console => notice,warning,error
  157. ;console => notice,warning,error,debug
  158. messages => notice,warning,error
  159. ;full => notice,warning,error,debug,verbose,dtmf,fax
  160. ;
  161. ;full-json => [json]debug,verbose,notice,warning,error,dtmf,fax
  162. ;
  163. ;syslog keyword : This special keyword logs to syslog facility
  164. ;
  165. ;syslog.local0 => notice,warning,error
  166. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement