2 ; Logging Configuration
4 ; In this file, you configure logging to files or to
7 ; "logger reload" at the CLI will reload configuration
8 ; of the logging system.
12 ; Customize the display of debug message time stamps
13 ; this example is the ISO 8601 date format (yyyy-mm-dd HH:MM:SS)
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.
19 ;dateformat=%F %T ; ISO 8601 date format
20 ;dateformat=%F %T.%3q ; with milliseconds
22 ; This appends the hostname to the name of the log files.
25 ; This determines whether or not we log queue events to a file
29 ; Determines whether the queue_log always goes to a file, even
30 ; when a realtime backend is present (defaults to no).
31 ;queue_log_to_file = yes
33 ; Set the queue_log filename
34 ; (defaults to queue_log)
35 ;queue_log_name = queue_log
37 ; Log rotation strategy:
38 ; sequential: Rename archived logs in order, such that the newest
39 ; has the highest sequence number [default]. When
40 ; exec_after_rotate is set, ${filename} will specify
41 ; the new archived logfile.
42 ; rotate: Rotate all the old files, such that the oldest has the
43 ; highest sequence number [this is the expected behavior
44 ; for Unix administrators]. When exec_after_rotate is
45 ; set, ${filename} will specify the original root filename.
46 ; timestamp: Rename the logfiles using a timestamp instead of a
47 ; sequence number when "logger rotate" is executed.
48 ; When exec_after_rotate is set, ${filename} will
49 ; specify the new archived logfile.
50 ;rotatestrategy = rotate
52 ; Run a system command after rotating the files. This is mainly
53 ; useful for rotatestrategy=rotate. The example allows the last
54 ; two archive files to remain uncompressed, but after that point,
55 ; they are compressed on disk.
57 ; exec_after_rotate=gzip -9 ${filename}.2
60 ; For each file, specify what to log.
62 ; For console logging, you set options at start of
63 ; Asterisk with -v for verbose and -d for debug
64 ; See 'asterisk -h' for more information.
66 ; Directory for log files is configures in asterisk.conf
71 ; Format is "filename" and then "levels" of debugging to be included:
80 ; Special filename "console" represents the system console
82 ; Filenames can either be relative to the standard Asterisk log directory
83 ; (see 'astlogdir' in asterisk.conf), or absolute paths that begin with
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
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.
107 console => notice,warning,error
108 ;console => notice,warning,error,debug
109 messages => notice,warning,error
110 ;full => notice,warning,error,debug,verbose,dtmf,fax
112 ;syslog keyword : This special keyword logs to syslog facility
114 ;syslog.local0 => notice,warning,error