Freya  0.0.1
A Gtk3 MPD Client
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Data Structures | Namespaces | Defines | Enumerations
src/Log/Writer.hh File Reference
#include <stdio.h>
#include <glibmm/ustring.h>
#include "../Utils/Singleton.hh"
Include dependency graph for Writer.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  Log::Writer

Namespaces

namespace  Log
 The namespace provides methods and marcos to interact with Freya's logging utility.

Defines

#define _MSG(level, msg,...)   Log::Writer::instance().message(__FILE__, __LINE__, level, msg, ##__VA_ARGS__)
#define LogSetVerbosity(X)   Log::Writer::instance().set_verbosity((Log::LOGLEVEL)X)
#define LogGetVerbosity   Log::Writer::instance().get_verbosity()
#define Warning(msg,...)   _MSG(Log::LOG_WARN, msg, ##__VA_ARGS__)
#define Info(msg,...)   _MSG(Log::LOG_INFO, msg, ##__VA_ARGS__)
#define Critical(msg,...)   _MSG(Log::LOG_CRITICAL, msg, ##__VA_ARGS__)
#define Error(msg,...)   _MSG(Log::LOG_ERROR, msg, ##__VA_ARGS__)
#define Debug(msg,...)   _MSG(Log::LOG_DEBUG, msg, ##__VA_ARGS__)
#define Success(msg,...)   _MSG(Log::LOG_OK, msg, ##__VA_ARGS__)

Enumerations

enum  Log::LOGLEVEL {
  Log::LOG_CRITICAL = 1, Log::LOG_ERROR, Log::LOG_WARN, Log::LOG_OK,
  Log::LOG_INFO, Log::LOG_DEBUG, Log::LOG_NUMS_OF_LEVEL
}
 Log severity, influencing the color. More...

Define Documentation

#define _MSG (   level,
  msg,
  ... 
)    Log::Writer::instance().message(__FILE__, __LINE__, level, msg, ##__VA_ARGS__)

Definition at line 39 of file Writer.hh.

#define Critical (   msg,
  ... 
)    _MSG(Log::LOG_CRITICAL, msg, ##__VA_ARGS__)

Definition at line 46 of file Writer.hh.

#define Debug (   msg,
  ... 
)    _MSG(Log::LOG_DEBUG, msg, ##__VA_ARGS__)

Definition at line 48 of file Writer.hh.

#define Error (   msg,
  ... 
)    _MSG(Log::LOG_ERROR, msg, ##__VA_ARGS__)

Definition at line 47 of file Writer.hh.

#define Info (   msg,
  ... 
)    _MSG(Log::LOG_INFO, msg, ##__VA_ARGS__)

Definition at line 45 of file Writer.hh.

#define LogGetVerbosity   Log::Writer::instance().get_verbosity()

Definition at line 41 of file Writer.hh.

#define LogSetVerbosity (   X)    Log::Writer::instance().set_verbosity((Log::LOGLEVEL)X)

Definition at line 40 of file Writer.hh.

#define Success (   msg,
  ... 
)    _MSG(Log::LOG_OK, msg, ##__VA_ARGS__)

Definition at line 49 of file Writer.hh.

#define Warning (   msg,
  ... 
)    _MSG(Log::LOG_WARN, msg, ##__VA_ARGS__)

Definition at line 44 of file Writer.hh.