FreeNOS
Data Structures | Macros
Log.h File Reference
#include "Singleton.h"
#include "Macros.h"

Go to the source code of this file.

Data Structures

class  Log
 Logging class. More...
 

Macros

#define MAKE_LOG(type, typestr, msg)
 Output a log line to the system log (syslog). More...
 
#define FATAL(msg)
 Output a critical message and terminate program immediatly. More...
 
#define ERROR(msg)   MAKE_LOG(Log::Error, "Error", msg)
 Output an error message. More...
 
#define WARNING(msg)   MAKE_LOG(Log::Warning, "Warning", msg)
 Output a warning message. More...
 
#define NOTICE(msg)   MAKE_LOG(Log::Notice, "Notice", msg)
 Output a notice message. More...
 
#define INFO(msg)   MAKE_LOG(Log::Info, "Info", msg)
 Output a regular message to standard output. More...
 
#define DEBUG(msg)   MAKE_LOG(Log::Debug, "Debug", msg)
 Output a debug message to standard output. More...
 

Functions

Operators to output various standard types to the log
Logoperator<< (Log &log, const char *str)
 
Logoperator<< (Log &log, int number)
 
Logoperator<< (Log &log, const char character)
 
Logoperator<< (Log &log, unsigned number)
 
Logoperator<< (Log &log, unsigned long number)
 
Logoperator<< (Log &log, void *ptr)