diff options
Diffstat (limited to 'pjlib/include/pj')
-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. |