Go to the documentation of this file.
27 #ifndef __STUMPLESS_LEVEL_ALERT_H
28 # define __STUMPLESS_LEVEL_ALERT_H
32 # ifndef STUMPLESS_DISABLE_ALERT_LEVEL
97 # ifdef STUMPLESS_DISABLE_ALERT_LEVEL
98 # define stump_a( ... ) ( 0 )
100 # define stump_a( ... ) \
101 stumpless_add_log( stumpless_get_current_target( ), \
102 STUMPLESS_SEVERITY_ALERT | STUMPLESS_DEFAULT_FACILITY, \
153 # ifdef STUMPLESS_DISABLE_ALERT_LEVEL
154 # define stump_a_str( message ) ( 0 )
156 # define stump_a_str( message ) \
157 stumpless_add_log_str( stumpless_get_current_target( ), \
158 STUMPLESS_SEVERITY_ALERT | STUMPLESS_DEFAULT_FACILITY, \
206 # ifdef STUMPLESS_DISABLE_ALERT_LEVEL
207 # define stump_a_entry( target, entry ) ( 0 )
209 # define stump_a_entry( target, entry ) \
210 stumpless_add_entry( ( target ), ( entry ) )
271 # ifdef STUMPLESS_DISABLE_ALERT_LEVEL
272 # define stump_a_log( target, priority, ... ) ( 0 )
274 # define stump_a_log( target, priority, ... ) \
275 stumpless_add_log( ( target ), ( priority ), __VA_ARGS__ )
327 # ifdef STUMPLESS_DISABLE_ALERT_LEVEL
328 # define stump_a_log_str( target, priority, message ) ( 0 )
330 # define stump_a_log_str( target, priority, message ) \
331 stumpless_add_log_str( ( target ), ( priority ), ( message ) )
394 # ifdef STUMPLESS_DISABLE_ALERT_LEVEL
395 # define stump_a_message( target, ... ) ( 0 )
397 # define stump_a_message( target, ... ) \
398 stumpless_add_log( ( target ), \
399 STUMPLESS_DEFAULT_FACILITY | STUMPLESS_SEVERITY_ALERT, \
454 # ifdef STUMPLESS_DISABLE_ALERT_LEVEL
455 # define stump_a_message_str( target, message ) ( 0 )
457 # define stump_a_message_str( target, message ) \
458 stumpless_add_log_str( ( target ), \
459 STUMPLESS_DEFAULT_FACILITY | STUMPLESS_SEVERITY_ALERT, \
513 # ifdef STUMPLESS_DISABLE_ALERT_LEVEL
514 # define stumplog_a( priority, ... ) ( ( void ) 0 )
516 # define stumplog_a( priority, ... ) stumplog( ( priority ), __VA_ARGS__ )
560 # ifdef STUMPLESS_DISABLE_ALERT_LEVEL
561 # define stumplog_a_str( priority, message ) ( ( void ) 0 )
563 # define stumplog_a_str( priority, message ) \
564 stumplog_str( ( priority ), ( message ) )