diff options
author | Andreas Köhler <andreas.koehler@1und1.de> | 2010-10-13 12:52:56 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2010-10-15 13:15:48 +0200 |
commit | cfca2b502a4f41edab88427eadadf19bd571d146 (patch) | |
tree | ea5a6ec3efc1101c8ffaba4f4cc671a3a68d0e30 /doc/guide.tex | |
parent | Use warning_msg event type for warning log level. (diff) |
Add support for changing the loglevels for given modules (EJAB-225)
ejabberd_loglevel:set/1 now understands more input formats:
set(Param) -> {module, ejabberd_logger}
Param = Level | {Level, CustomLevels}
CustomLevels = [CustomLevel]
CustomLevel = {Module, Level}
Module = atom()
Level = integer() | atom()
set(Level) is equivalent to set({Level, []}), so it clears all module
level customizations. log_src/2 adds additional function heads for those
_msg function and module combinations that need non-default behavior,
i.e. add or filter logging.
ejabberd_loglevel:get/0 only returns the default log level. To retrieve
the complete setting use ejabberd_logger:get/0 instead.
Diffstat (limited to 'doc/guide.tex')
0 files changed, 0 insertions, 0 deletions