Changeset 1042 for pjproject/trunk/pjlib/src/pj/log.c
- Timestamp:
- Mar 5, 2007 9:08:01 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/log.c
r974 r1042 25 25 #if PJ_LOG_MAX_LEVEL >= 1 26 26 27 static intlog_max_level = PJ_LOG_MAX_LEVEL;27 PJ_DEF(int) pj_log_max_level = PJ_LOG_MAX_LEVEL; 28 28 static pj_log_func *log_writer = &pj_log_write; 29 29 static unsigned log_decor = PJ_LOG_HAS_TIME | PJ_LOG_HAS_MICRO_SEC | … … 46 46 PJ_DEF(void) pj_log_set_level(int level) 47 47 { 48 log_max_level = level; 49 } 50 48 pj_log_max_level = level; 49 } 50 51 #if 0 51 52 PJ_DEF(int) pj_log_get_level(void) 52 53 { 53 return log_max_level; 54 } 54 return pj_log_max_level; 55 } 56 #endif 55 57 56 58 PJ_DEF(void) pj_log_set_log_func( pj_log_func *func ) … … 77 79 PJ_CHECK_STACK(); 78 80 79 if (level > log_max_level)81 if (level > pj_log_max_level) 80 82 return; 81 83
Note: See TracChangeset
for help on using the changeset viewer.