Review Board 1.7.16


Add abliity for logger channels to include *all* levels

Review Request #663 - Created May 18, 2010 and submitted

Kevin Fleming
trunk
Reviewers
asterisk-dev
Asterisk
Now that Asterisk modules can dynamically create and destroy logger levels on demand, it's useful to be able to configure a logger channel (console, file, whatever) to be able to accept log messages from *all* levels, even levels created dynamically. This patch adds support for this, by allowing the '*' level name to be used in logger.conf.
Compile testing only.

Diff revision 1 (Latest)

  1. /trunk/configs/logger.conf.sample: Loading...
  2. /trunk/main/logger.c: Loading...
/trunk/configs/logger.conf.sample
Revision 263767 New Change
[20] 70 lines
[+20]
71
;
71
;
72
; Filenames can either be relative to the standard Asterisk log directory
72
; Filenames can either be relative to the standard Asterisk log directory
73
; (see 'astlogdir' in asterisk.conf), or absolute paths that begin with
73
; (see 'astlogdir' in asterisk.conf), or absolute paths that begin with
74
; '/'.
74
; '/'.
75
;
75
;

    
   
76
; Special level name "*" means all levels, even dynamic levels registered

    
   
77
; by modules after the logger has been initialized (no reload required).

    
   
78
;
76
; We highly recommend that you DO NOT turn on debug mode if you are simply
79
; We highly recommend that you DO NOT turn on debug mode if you are simply
77
; running a production system.  Debug mode turns on a LOT of extra messages,
80
; running a production system.  Debug mode turns on a LOT of extra messages,
78
; most of which you are unlikely to understand without an understanding of
81
; most of which you are unlikely to understand without an understanding of
79
; the underlying code.  Do NOT report debug messages as code issues, unless
82
; the underlying code.  Do NOT report debug messages as code issues, unless
80
; you have a specific issue that you are attempting to debug.  They are
83
; you have a specific issue that you are attempting to debug.  They are
[+20] [20] 16 lines
/trunk/main/logger.c
Revision 263767 New Change
 
  1. /trunk/configs/logger.conf.sample: Loading...
  2. /trunk/main/logger.c: Loading...

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.