Go to the documentation of this file.
27 #ifndef __STUMPLESS_LEVEL_CRIT_H
28 # define __STUMPLESS_LEVEL_CRIT_H
32 # ifndef STUMPLESS_DISABLE_CRIT_LEVEL
97 # ifdef STUMPLESS_DISABLE_CRIT_LEVEL
98 # define stump_c( ... ) ( 0 )
100 # define stump_c( ... ) \
101 stumpless_add_log( stumpless_get_current_target( ), \
102 STUMPLESS_SEVERITY_CRIT | STUMPLESS_DEFAULT_FACILITY, \
161 # ifdef STUMPLESS_DISABLE_CRIT_LEVEL
162 # define stump_c_str( message ) ( 0 )
164 # define stump_c_str( message ) \
165 stumpless_add_log_str( stumpless_get_current_target( ), \
166 STUMPLESS_SEVERITY_CRIT | STUMPLESS_DEFAULT_FACILITY, \
214 # ifdef STUMPLESS_DISABLE_CRIT_LEVEL
215 # define stump_c_entry( target, entry ) ( 0 )
217 # define stump_c_entry( target, entry ) \
218 stumpless_add_entry( ( target ), ( entry ) )
279 # ifdef STUMPLESS_DISABLE_CRIT_LEVEL
280 # define stump_c_log( target, priority, ... ) ( 0 )
282 # define stump_c_log( target, priority, ... ) \
283 stumpless_add_log( ( target ), ( priority ), __VA_ARGS__ )
335 # ifdef STUMPLESS_DISABLE_CRIT_LEVEL
336 # define stump_c_log_str( target, priority, message ) ( 0 )
338 # define stump_c_log_str( target, priority, message ) \
339 stumpless_add_log_str( ( target ), ( priority ), ( message ) )
402 # ifdef STUMPLESS_DISABLE_CRIT_LEVEL
403 # define stump_c_message( target, ... ) ( 0 )
405 # define stump_c_message( target, ... ) \
406 stumpless_add_log( ( target ), \
407 STUMPLESS_DEFAULT_FACILITY | STUMPLESS_SEVERITY_CRIT, \
462 # ifdef STUMPLESS_DISABLE_CRIT_LEVEL
463 # define stump_c_message_str( target, message ) ( 0 )
465 # define stump_c_message_str( target, message ) \
466 stumpless_add_log_str( ( target ), \
467 STUMPLESS_DEFAULT_FACILITY | STUMPLESS_SEVERITY_CRIT, \
521 # ifdef STUMPLESS_DISABLE_CRIT_LEVEL
522 # define stumplog_c( priority, ... ) ( ( void ) 0 )
524 # define stumplog_c( priority, ... ) stumplog( ( priority ), __VA_ARGS__ )
568 # ifdef STUMPLESS_DISABLE_CRIT_LEVEL
569 # define stumplog_c_str( priority, message ) ( ( void ) 0 )
571 # define stumplog_c_str( priority, message ) \
572 stumplog_str( ( priority ), ( message ) )