mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	(closes issue #17715) Reported by: vrban Patches: 17715.patch uploaded by pabelanger (license 224) Tested by: vrban git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
		
			
				
	
	
		
			116 lines
		
	
	
		
			4.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			116 lines
		
	
	
		
			4.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ;
 | |
| ; Logging Configuration
 | |
| ;
 | |
| ; In this file, you configure logging to files or to
 | |
| ; the syslog system.
 | |
| ;
 | |
| ; "logger reload" at the CLI will reload configuration
 | |
| ; of the logging system.
 | |
| 
 | |
| [general]
 | |
| ;
 | |
| ; Customize the display of debug message time stamps
 | |
| ; this example is the ISO 8601 date format (yyyy-mm-dd HH:MM:SS)
 | |
| ;
 | |
| ; see strftime(3) Linux manual for format specifiers.  Note that there is also
 | |
| ; a fractional second parameter which may be used in this field.  Use %1q
 | |
| ; for tenths, %2q for hundredths, etc.
 | |
| ;
 | |
| ;dateformat=%F %T       ; ISO 8601 date format
 | |
| ;dateformat=%F %T.%3q   ; with milliseconds
 | |
| ;
 | |
| ; This appends the hostname to the name of the log files.
 | |
| ;appendhostname = yes
 | |
| ;
 | |
| ; This determines whether or not we log queue events to a file
 | |
| ; (defaults to yes).
 | |
| ;queue_log = no
 | |
| ;
 | |
| ; Determines whether the queue_log always goes to a file, even
 | |
| ; when a realtime backend is present (defaults to no).
 | |
| ;queue_log_to_file = yes
 | |
| ;
 | |
| ; Set the queue_log filename
 | |
| ; (defaults to queue_log)
 | |
| ;queue_log_name = queue_log
 | |
| ;
 | |
| ; Log rotation strategy:
 | |
| ; sequential:  Rename archived logs in order, such that the newest
 | |
| ;              has the highest sequence number [default].  When
 | |
| ;              exec_after_rotate is set, ${filename} will specify
 | |
| ;              the new archived logfile.
 | |
| ; rotate:  Rotate all the old files, such that the oldest has the
 | |
| ;          highest sequence number [this is the expected behavior
 | |
| ;          for Unix administrators].  When exec_after_rotate is
 | |
| ;          set, ${filename} will specify the original root filename.
 | |
| ; timestamp:  Rename the logfiles using a timestamp instead of a
 | |
| ;             sequence number when "logger rotate" is executed.
 | |
| ;             When exec_after_rotate is set, ${filename} will
 | |
| ;             specify the new archived logfile.
 | |
| ;rotatestrategy = rotate
 | |
| ;
 | |
| ; Run a system command after rotating the files.  This is mainly
 | |
| ; useful for rotatestrategy=rotate. The example allows the last
 | |
| ; two archive files to remain uncompressed, but after that point,
 | |
| ; they are compressed on disk.
 | |
| ;
 | |
| ; exec_after_rotate=gzip -9 ${filename}.2
 | |
| ;
 | |
| ;
 | |
| ; For each file, specify what to log.
 | |
| ;
 | |
| ; For console logging, you set options at start of
 | |
| ; Asterisk with -v for verbose and -d for debug
 | |
| ; See 'asterisk -h' for more information.
 | |
| ;
 | |
| ; Directory for log files is configures in asterisk.conf
 | |
| ; option astlogdir
 | |
| ;
 | |
| [logfiles]
 | |
| ;
 | |
| ; Format is "filename" and then "levels" of debugging to be included:
 | |
| ;    debug
 | |
| ;    notice
 | |
| ;    warning
 | |
| ;    error
 | |
| ;    verbose
 | |
| ;    dtmf
 | |
| ;    fax
 | |
| ;
 | |
| ; Special filename "console" represents the system console
 | |
| ;
 | |
| ; Filenames can either be relative to the standard Asterisk log directory
 | |
| ; (see 'astlogdir' in asterisk.conf), or absolute paths that begin with
 | |
| ; '/'.
 | |
| ;
 | |
| ; Special level name "*" means all levels, even dynamic levels registered
 | |
| ; by modules after the logger has been initialized (this means that loading
 | |
| ; and unloading modules that create/remove dynamic logger levels will result
 | |
| ; in these levels being included on filenames that have a level name of "*",
 | |
| ; without any need to perform a 'logger reload' or similar operation). Note
 | |
| ; that there is no value in specifying both "*" and specific level names for
 | |
| ; a filename; the "*" level means all levels, and the remaining level names
 | |
| ; will be ignored.
 | |
| ;
 | |
| ; We highly recommend that you DO NOT turn on debug mode if you are simply
 | |
| ; running a production system.  Debug mode turns on a LOT of extra messages,
 | |
| ; most of which you are unlikely to understand without an understanding of
 | |
| ; the underlying code.  Do NOT report debug messages as code issues, unless
 | |
| ; you have a specific issue that you are attempting to debug.  They are
 | |
| ; messages for just that -- debugging -- and do not rise to the level of
 | |
| ; something that merit your attention as an Asterisk administrator.  Debug
 | |
| ; messages are also very verbose and can and do fill up logfiles quickly;
 | |
| ; this is another reason not to have debug mode on a production system unless
 | |
| ; you are in the process of debugging a specific issue.
 | |
| ;
 | |
| ;debug => debug
 | |
| console => notice,warning,error
 | |
| ;console => notice,warning,error,debug
 | |
| messages => notice,warning,error
 | |
| ;full => notice,warning,error,debug,verbose,dtmf,fax
 | |
| 
 | |
| ;syslog keyword : This special keyword logs to syslog facility
 | |
| ;
 | |
| ;syslog.local0 => notice,warning,error
 | |
| ;
 |