32#ifndef __STUMPLESS_LEVEL_TRACE_H
33#define __STUMPLESS_LEVEL_TRACE_H
37#ifndef STUMPLESS_DISABLE_TRACE_LEVEL
38# include <stumpless/config.h>
103#ifdef STUMPLESS_DISABLE_TRACE_LEVEL
104# define stump_t( ... ) ( 0 )
106# define stump_t( ... ) \
107stumpless_trace_log( stumpless_get_current_target( ), \
108 STUMPLESS_SEVERITY_DEBUG | STUMPLESS_DEFAULT_FACILITY, \
169#ifdef STUMPLESS_DISABLE_TRACE_LEVEL
170# define stump_t_str( message ) ( 0 )
172# define stump_t_str( message ) \
173stumpless_trace_log_str( stumpless_get_current_target( ), \
174 STUMPLESS_SEVERITY_DEBUG | STUMPLESS_DEFAULT_FACILITY,\
230#ifdef STUMPLESS_DISABLE_TRACE_LEVEL
231# define stump_t_entry( target, entry ) ( 0 )
233# define stump_t_entry( target, entry ) \
234stumpless_trace_entry( ( target ), ( entry ), __FILE__, __LINE__, __func__ )
296#ifdef STUMPLESS_DISABLE_TRACE_LEVEL
297# define stump_t_log( target, priority, ... ) ( 0 )
299# define stump_t_log( target, priority, ... ) \
300stumpless_trace_log( ( target ), \
363#ifdef STUMPLESS_DISABLE_TRACE_LEVEL
364# define stump_t_log_str( target, priority, message ) ( 0 )
366# define stump_t_log_str( target, priority, message ) \
367stumpless_trace_log_str( ( target ), \
436#ifdef STUMPLESS_DISABLE_TRACE_LEVEL
437# define stump_t_message( target, ... ) ( 0 )
439# define stump_t_message( target, ... ) \
440stumpless_trace_log( ( target ), \
441 STUMPLESS_DEFAULT_FACILITY | STUMPLESS_SEVERITY_DEBUG, \
504#ifdef STUMPLESS_DISABLE_TRACE_LEVEL
505# define stump_t_message_str( target, message ) ( 0 )
507# define stump_t_message_str( target, message ) \
508stumpless_trace_log_str( ( target ), \
509 STUMPLESS_DEFAULT_FACILITY | STUMPLESS_SEVERITY_DEBUG,\
567#ifdef STUMPLESS_DISABLE_TRACE_LEVEL
568# define stumplog_t( priority, ... ) ( ( void ) 0 )
570# define stumplog_t( priority, ... ) \
571stumplog_trace( ( priority ), __FILE__, __LINE__, __func__, __VA_ARGS__ )
620#ifdef STUMPLESS_DISABLE_TRACE_LEVEL
621# define stumplog_t_str( priority, message ) ( ( void ) 0 )
623# define stumplog_t_str( priority, message ) \
624stumplog_trace_str( ( priority ), __FILE__, __LINE__, __func__, ( 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.