ASL
Message logger

Detailed Description

Class Log and related macros allow logging messages to the console and/or to a file.

ASL_LOG_E("Cannot load file %s", *filename);
#define ASL_LOG_E(...)
Log a formatted message with the ERROR level.
Definition: Log.h:136

Classes

class  Log
 Log is a utility to log messages to either the console, a file or both. More...
 

Macros

#define ASL_LOG_(LEVEL, ...)
 Log a formatted message with the given level (ERR, WARNING, INFO, DEBUG or VERBOSE)
 
#define ASL_LOG_E(...)
 Log a formatted message with the ERROR level.
 
#define ASL_LOG_W(...)
 Log a formatted message with the WARNING level.
 
#define ASL_LOG_I(...)
 Log a formatted message with the INFO level.
 
#define ASL_LOG_D(...)
 Log a formatted message with the DEBUG level.
 
#define ASL_LOG_V(...)
 Log a formatted message with the VERBOSE level.
 

Functions

void log (const String &cat, Log::Level level, const String &message)
 
void log (const String &cat, Log::Level level, const char *fmt,...) ASL_PRINTF_W2(3)
 Writes a printf-like formatted log message with the given category and log level.
 

Function Documentation

◆ log()

void asl::log ( const String cat,
Log::Level  level,
const String message 
)
Writes a log message with the given category and log level.