diff options
author | Andreas Köhler <andreas.koehler@1und1.de> | 2010-10-12 15:30:18 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2010-10-15 13:15:44 +0200 |
commit | 0c2677bc50c81168a3447de7c8e9ca6a2425a54a (patch) | |
tree | 87ce7eb79e58995eccf574c84b73a118e3bf3466 /doc | |
parent | Use records for encoding static loglevel information. (diff) |
Improve ejabberd_logger code generation
Split the monolithic function ejabberd_loglevel:ejabberd_logger_src/1
into separate functions returning deep lists.
log_src/2 now returns the code for any of *_msg/4. Its parameters are
the current loglevel (integer()) and a loglevel specification
(#loglevel{}), with added information in #loglevel:
- function: The api function enabled by this level, may be no_log
- event_type: The type of the event sent to the error_logger
- msg_prefix: One character used in the message (one of "DIWEC")
If the current loglevel is too low for logging, the api function is
optimized at compile time.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions