diff options
author | Benny Prijono <bennylp@teluu.com> | 2013-08-30 04:03:22 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2013-08-30 04:03:22 +0000 |
commit | 87d0950ae8f3253244ce62e4659db34684c7aa2b (patch) | |
tree | 5f42f411c5d769fd7a34402840646419a05407eb /pjlib | |
parent | aed0a007c128947e004e9963a84b69a68465d3d9 (diff) |
Misc (re #1630): fixed link error when logging is completely disabled via PJ_LOG_MAX_LEVEL macro
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4584 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib')
-rw-r--r-- | pjlib/include/pj/log.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pjlib/include/pj/log.h b/pjlib/include/pj/log.h index 103469f9..96dc4852 100644 --- a/pjlib/include/pj/log.h +++ b/pjlib/include/pj/log.h @@ -260,6 +260,16 @@ pj_status_t pj_log_init(void); # define pj_log_set_log_func(func) /** + * Write to log. + * + * @param sender Source of the message. + * @param level Verbosity level. + * @param format Format. + * @param marker Marker. + */ +# define pj_log(sender, level, format, marker) + +/** * Set maximum log level. Application can call this function to set * the desired level of verbosity of the logging messages. The bigger the * value, the more verbose the logging messages will be printed. However, @@ -283,6 +293,26 @@ pj_status_t pj_log_init(void); # define pj_log_set_decor(decor) /** + * Add indentation to log message. Indentation will add PJ_LOG_INDENT_CHAR + * before the message, and is useful to show the depth of function calls. + * + * @param indent The indentation to add or substract. Positive value + * adds current indent, negative value subtracts current + * indent. + */ +# define pj_log_add_indent(indent) + +/** + * Push indentation to the right by default value (PJ_LOG_INDENT). + */ +# define pj_log_push_indent() + +/** + * Pop indentation (to the left) by default value (PJ_LOG_INDENT). + */ +# define pj_log_pop_indent() + +/** * Set color of log messages. * * @param level Log level which color will be changed. |