Music Hub  ..
A session-wide music playback service
logger.h File Reference
#include "core/media/non_copyable.h"
#include "core/media/util/utils.h"
#include <boost/optional.hpp>
#include <string>
+ Include dependency graph for logger.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  core::ubuntu::media::Logger
 
struct  core::ubuntu::media::Logger::Location
 

Namespaces

 core
 
 core::ubuntu
 
 core::ubuntu::media
 

Macros

#define TRACE(...)   Log().Tracef(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 
#define DEBUG(...)   Log().Debugf(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 
#define INFO(...)   Log().Infof(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 
#define WARNING(...)   Log().Warningf(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 
#define ERROR(...)   Log().Errorf(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 
#define FATAL(...)   Log().Fatalf(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 
#define MH_TRACE(...)
 
#define MH_DEBUG(...)
 
#define MH_INFO(...)
 
#define MH_WARNING(...)   core::ubuntu::media::Log().Warningf(core::ubuntu::media::Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 
#define MH_ERROR(...)   core::ubuntu::media::Log().Errorf(core::ubuntu::media::Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 
#define MH_FATAL(...)   core::ubuntu::media::Log().Fatalf(core::ubuntu::media::Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 

Functions

std::ostream & core::ubuntu::media::operator<< (std::ostream &strm, Logger::Severity severity)
 
std::ostream & core::ubuntu::media::operator<< (std::ostream &out, const Logger::Location &location)
 
Logger & core::ubuntu::media::Log ()
 
void core::ubuntu::media::SetLogger (const std::shared_ptr< Logger > &logger)
 

Macro Definition Documentation

#define DEBUG (   ...)    Log().Debugf(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)

Definition at line 112 of file logger.h.

#define ERROR (   ...)    Log().Errorf(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)

Definition at line 115 of file logger.h.

#define FATAL (   ...)    Log().Fatalf(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)

Definition at line 116 of file logger.h.

#define INFO (   ...)    Log().Infof(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)

Definition at line 113 of file logger.h.

#define MH_DEBUG (   ...)
#define MH_FATAL (   ...)    core::ubuntu::media::Log().Fatalf(core::ubuntu::media::Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)

Definition at line 129 of file logger.h.

#define TRACE (   ...)    Log().Tracef(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)

Definition at line 111 of file logger.h.

#define WARNING (   ...)    Log().Warningf(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)

Definition at line 114 of file logger.h.