]> git.ipfire.org Git - thirdparty/asterisk.git/commit
PJPROJECT logging: Made easier to get available logging levels. 26/4726/1
authorRichard Mudgett <rmudgett@digium.com>
Thu, 24 Nov 2016 00:27:54 +0000 (18:27 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 16 Jan 2017 17:03:17 +0000 (11:03 -0600)
commit3a8a42b4040aefb5a8c36b798fc82a9b9a92d891
treefa3872e4a29df194565d429382be47b7a7573d53
parent08fb0b4ff6603c4932d5f031bc39deb30404292e
PJPROJECT logging: Made easier to get available logging levels.

Use of the new logging is as simple as issuing the new CLI command or
setting the new pjproject.conf option.

Other options that can affect the logging are how you have the pjproject
log levels mapped to Asterisk log types in pjproject.conf and if you have
configured Asterisk to log the DEBUG type messages.  Altering the
pjproject.conf level mapping shouldn't be necessary for most installations
as the default mapping is sensible.  Configuring Asterisk to log the DEBUG
message type is standard practice for collecting debug information.

* Added CLI "pjproject set log level" command to dynamically adjust the
maximum pjproject log message level.

* Added CLI "pjproject show log level" command to see the currently set
maximum pjproject log message level.

* Added pjproject.conf startup section "log_level" option to set the
initial maximum pjproject log message level so all messages could be
captured from initialization.

* Set PJ_LOG_MAX_LEVEL to 6 to compile in all defined logging levels into
bundled pjproject.  Pjproject will use the currently set run time log
level to determine if a log message is generated just like Asterisk
verbose and debug logging levels.

* In log_forwarder(), made always log enabled and mapped pjproject log
messages.  DEBUG mapped log messages are no longer gated by the current
Asterisk debug logging level.

* Removed RAII_VAR() from res_pjproject.c:get_log_level().

ASTERISK-26630 #close

Change-Id: I6dca12979f482ffb0450aaf58db0fe0f6d2e5389
CHANGES
configs/samples/pjproject.conf.sample
include/asterisk/options.h
main/asterisk.c
main/libasteriskpj.c
res/res_pjproject.c
res/res_rtp_asterisk.c
third-party/pjproject/patches/config_site.h