simplelogger.h File Reference
Include dependency graph for simplelogger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SIMPLELOGGER_FUNCTION   __func__
 
#define SIMPLELOGGER_LOG_CSTR(logger, message, level)
 
#define SIMPLELOGGER_TRACE_CSTR(logger, message)
 
#define SIMPLELOGGER_DEBUG_CSTR(logger, message)
 
#define SIMPLELOGGER_INFO_CSTR(logger, message)
 
#define SIMPLELOGGER_WARN_CSTR(logger, message)
 
#define SIMPLELOGGER_ERROR_CSTR(logger, message)
 
#define SIMPLELOGGER_FATAL_CSTR(logger, message)
 
#define SIMPLELOGGER_TRACE(logger, message)    SIMPLELOGGER_TRACE_CSTR(logger, message )
 
#define SIMPLELOGGER_DEBUG(logger, message)    SIMPLELOGGER_DEBUG_CSTR(logger, message )
 
#define SIMPLELOGGER_INFO(logger, message)    SIMPLELOGGER_INFO_CSTR(logger, message )
 
#define SIMPLELOGGER_WARN(logger, message)    SIMPLELOGGER_WARN_CSTR(logger, message )
 
#define SIMPLELOGGER_ERROR(logger, message)    SIMPLELOGGER_ERROR_CSTR(logger, message )
 
#define SIMPLELOGGER_FATAL(logger, message)    SIMPLELOGGER_FATAL_CSTR(logger, message )
 

Variables

simplelogger_log_function SIMPLELOGGER_LOG_FUNCTION_NAME
 Global log pointer. More...
 

Macro Definition Documentation

◆ SIMPLELOGGER_DEBUG

#define SIMPLELOGGER_DEBUG (   logger,
  message 
)     SIMPLELOGGER_DEBUG_CSTR(logger, message )

◆ SIMPLELOGGER_DEBUG_CSTR

#define SIMPLELOGGER_DEBUG_CSTR (   logger,
  message 
)
Value:
do{\
SIMPLELOGGER_LOG_CSTR( logger, message, SL_DEBUG);\
} while(0)
@ SL_DEBUG
Definition: simplelogger_defs.h:28

◆ SIMPLELOGGER_ERROR

#define SIMPLELOGGER_ERROR (   logger,
  message 
)     SIMPLELOGGER_ERROR_CSTR(logger, message )

◆ SIMPLELOGGER_ERROR_CSTR

#define SIMPLELOGGER_ERROR_CSTR (   logger,
  message 
)
Value:
do{\
SIMPLELOGGER_LOG_CSTR( logger, message, SL_ERROR);\
} while(0)
@ SL_ERROR
Definition: simplelogger_defs.h:31

◆ SIMPLELOGGER_FATAL

#define SIMPLELOGGER_FATAL (   logger,
  message 
)     SIMPLELOGGER_FATAL_CSTR(logger, message )

◆ SIMPLELOGGER_FATAL_CSTR

#define SIMPLELOGGER_FATAL_CSTR (   logger,
  message 
)
Value:
do{\
SIMPLELOGGER_LOG_CSTR( logger, message, SL_FATAL);\
} while(0)
@ SL_FATAL
Definition: simplelogger_defs.h:32

◆ SIMPLELOGGER_FUNCTION

#define SIMPLELOGGER_FUNCTION   __func__

◆ SIMPLELOGGER_INFO

#define SIMPLELOGGER_INFO (   logger,
  message 
)     SIMPLELOGGER_INFO_CSTR(logger, message )

◆ SIMPLELOGGER_INFO_CSTR

#define SIMPLELOGGER_INFO_CSTR (   logger,
  message 
)
Value:
do{\
SIMPLELOGGER_LOG_CSTR( logger, message, SL_INFO);\
} while(0)
@ SL_INFO
Definition: simplelogger_defs.h:29

◆ SIMPLELOGGER_LOG_CSTR

#define SIMPLELOGGER_LOG_CSTR (   logger,
  message,
  level 
)
Value:
do{\
struct SL_LogLocation location;\
location.line_number = __LINE__;\
location.file = __FILE__;\
location.function = SIMPLELOGGER_FUNCTION;\
SIMPLELOGGER_LOG_FUNCTION_NAME( logger, &location, level, message );\
} while(0)
#define SIMPLELOGGER_FUNCTION
Definition: simplelogger.h:22
simplelogger_log_function SIMPLELOGGER_LOG_FUNCTION_NAME
Global log pointer.
Where the log message was generated from.
Definition: simplelogger_defs.h:17
int line_number
Definition: simplelogger_defs.h:18

◆ SIMPLELOGGER_TRACE

#define SIMPLELOGGER_TRACE (   logger,
  message 
)     SIMPLELOGGER_TRACE_CSTR(logger, message )

◆ SIMPLELOGGER_TRACE_CSTR

#define SIMPLELOGGER_TRACE_CSTR (   logger,
  message 
)
Value:
do{\
SIMPLELOGGER_LOG_CSTR( logger, message, SL_TRACE);\
} while(0)
@ SL_TRACE
Definition: simplelogger_defs.h:27

◆ SIMPLELOGGER_WARN

#define SIMPLELOGGER_WARN (   logger,
  message 
)     SIMPLELOGGER_WARN_CSTR(logger, message )

◆ SIMPLELOGGER_WARN_CSTR

#define SIMPLELOGGER_WARN_CSTR (   logger,
  message 
)
Value:
do{\
SIMPLELOGGER_LOG_CSTR( logger, message, SL_WARN);\
} while(0)
@ SL_WARN
Definition: simplelogger_defs.h:30

Variable Documentation

◆ SIMPLELOGGER_LOG_FUNCTION_NAME

simplelogger_log_function SIMPLELOGGER_LOG_FUNCTION_NAME
extern

Global log pointer.