Home --> Documentations --> PJLIB Reference
Logging Utility.
More...
Go to the source code of this file.
|
typedef void | pj_log_func(int level, const char *data, int len) |
|
|
enum | pj_log_decoration {
PJ_LOG_HAS_DAY_NAME = 1
, PJ_LOG_HAS_YEAR = 2
, PJ_LOG_HAS_MONTH = 4
, PJ_LOG_HAS_DAY_OF_MON = 8
,
PJ_LOG_HAS_TIME = 16
, PJ_LOG_HAS_MICRO_SEC = 32
, PJ_LOG_HAS_SENDER = 64
, PJ_LOG_HAS_NEWLINE = 128
,
PJ_LOG_HAS_CR = 256
, PJ_LOG_HAS_SPACE = 512
, PJ_LOG_HAS_COLOR = 1024
, PJ_LOG_HAS_LEVEL_TEXT = 2048
,
PJ_LOG_HAS_THREAD_ID = 4096
, PJ_LOG_HAS_THREAD_SWC = 8192
, PJ_LOG_HAS_INDENT =16384
} |
|
|
void | pj_log_write (int level, const char *buffer, int len) |
|
void | pj_log (const char *sender, int level, const char *format, va_list marker) |
|
void | pj_log_set_log_func (pj_log_func *func) |
|
pj_log_func * | pj_log_get_log_func (void) |
|
void | pj_log_set_level (int level) |
|
int | pj_log_get_level (void) |
|
void | pj_log_set_decor (unsigned decor) |
|
unsigned | pj_log_get_decor (void) |
|
void | pj_log_add_indent (int indent) |
|
void | pj_log_set_indent (int indent) |
|
int | pj_log_get_indent (void) |
|
void | pj_log_push_indent (void) |
|
void | pj_log_pop_indent (void) |
|
void | pj_log_set_color (int level, pj_color_t color) |
|
pj_color_t | pj_log_get_color (int level) |
|
pj_status_t | pj_log_init (void) |
|
void | pj_log_1 (const char *src, const char *format,...) |
|
void | pj_log_2 (const char *src, const char *format,...) |
|
void | pj_log_3 (const char *src, const char *format,...) |
|
void | pj_log_4 (const char *src, const char *format,...) |
|
◆ pj_log_wrapper_1
#define pj_log_wrapper_1 |
( |
|
arg | ) |
pj_log_1 arg |
Internal function to write log with verbosity 1. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 1. - Parameters
-
◆ pj_log_wrapper_2
#define pj_log_wrapper_2 |
( |
|
arg | ) |
pj_log_2 arg |
Internal function to write log with verbosity 2. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 2. - Parameters
-
◆ pj_log_wrapper_3
#define pj_log_wrapper_3 |
( |
|
arg | ) |
pj_log_3 arg |
Internal function to write log with verbosity 3. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 3. - Parameters
-
◆ pj_log_wrapper_4
#define pj_log_wrapper_4 |
( |
|
arg | ) |
pj_log_4 arg |
Internal function to write log with verbosity 4. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 4. - Parameters
-
◆ pj_log_wrapper_5
#define pj_log_wrapper_5 |
( |
|
arg | ) |
|
Internal function to write log with verbosity 5. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 5. - Parameters
-
◆ pj_log_wrapper_6
#define pj_log_wrapper_6 |
( |
|
arg | ) |
|
Internal function to write log with verbosity 6. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 6. - Parameters
-
◆ pj_log_1()
void pj_log_1 |
( |
const char * |
src, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
◆ pj_log_2()
void pj_log_2 |
( |
const char * |
src, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
◆ pj_log_3()
void pj_log_3 |
( |
const char * |
src, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
◆ pj_log_4()
void pj_log_4 |
( |
const char * |
src, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.
|