28#ifndef __STUMPLESS_LEVEL_CRIT_H
29#define __STUMPLESS_LEVEL_CRIT_H
33#ifndef STUMPLESS_DISABLE_CRIT_LEVEL
34# include <stumpless/config.h>
94#ifdef STUMPLESS_DISABLE_CRIT_LEVEL
95# define stump_c( ... ) ( 0 )
97# define stump_c( ... ) \
98stumpless_add_log( stumpless_get_current_target(), \
99 STUMPLESS_SEVERITY_CRIT | \
100 STUMPLESS_DEFAULT_FACILITY, \
153#ifdef STUMPLESS_DISABLE_CRIT_LEVEL
154# define stump_c_str( message ) ( 0 )
156# define stump_c_str( message ) \
157stumpless_add_log_str( stumpless_get_current_target( ), \
158 STUMPLESS_SEVERITY_CRIT | \
159 STUMPLESS_DEFAULT_FACILITY, \
207#ifdef STUMPLESS_DISABLE_CRIT_LEVEL
208# define stump_c_entry( target, entry ) ( 0 )
210# define stump_c_entry( target, entry ) \
211stumpless_add_entry( ( target ), ( entry ) )
268#ifdef STUMPLESS_DISABLE_CRIT_LEVEL
269# define stump_c_log( target, priority, ... ) ( 0 )
271# define stump_c_log( target, priority, ... ) \
272stumpless_add_log( ( target ), ( priority ), __VA_ARGS__ )
325#ifdef STUMPLESS_DISABLE_CRIT_LEVEL
326# define stump_c_log_str( target, priority, message ) ( 0 )
328# define stump_c_log_str( target, priority, message ) \
329stumpless_add_log_str( ( target ), ( priority ), ( message ) )
388#ifdef STUMPLESS_DISABLE_CRIT_LEVEL
389# define stump_c_message( target, ... ) ( 0 )
391# define stump_c_message( target, ... ) \
392stumpless_add_log( ( target ), \
393 STUMPLESS_DEFAULT_FACILITY | \
394 STUMPLESS_SEVERITY_CRIT, \
449#ifdef STUMPLESS_DISABLE_CRIT_LEVEL
450# define stump_c_message_str( target, message ) ( 0 )
452# define stump_c_message_str( target, message ) \
453stumpless_add_log_str( ( target ), \
454 STUMPLESS_DEFAULT_FACILITY | \
455 STUMPLESS_SEVERITY_CRIT, \
505#ifdef STUMPLESS_DISABLE_CRIT_LEVEL
506# define stumplog_c( priority, ... ) ( ( void ) 0 )
508# define stumplog_c( priority, ... ) \
509stumplog( ( priority ), __VA_ARGS__ )
553#ifdef STUMPLESS_DISABLE_CRIT_LEVEL
554# define stumplog_c_str( priority, message ) ( ( void ) 0 )
556# define stumplog_c_str( priority, message ) \
557stumplog_str( ( priority ), ( message ) )
Convenience functions for creating and writing simple log entries.
Masks that provide shorthand for enabling or disabling logging levels at compile time.
Severity codes for classifying log entries.
General types and functions for working with all targets.