ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Friends | List of all members
el::Logger Class Reference

Represents a logger holding ID and configurations we need to write logs. More...

#include <easylogging++.h>

Inheritance diagram for el::Logger:
el::base::threading::ThreadSafe el::Loggable el::base::threading::ThreadSafe el::Loggable el::base::threading::ThreadSafe el::Loggable

Public Member Functions

 Logger (const std::string &id, base::LogStreamsReferenceMap *logStreamsReference)
 
 Logger (const std::string &id, const Configurations &configurations, base::LogStreamsReferenceMap *logStreamsReference)
 
 Logger (const Logger &logger)
 
Loggeroperator= (const Logger &logger)
 
virtual ~Logger (void)
 
virtual void log (el::base::type::ostream_t &os) const
 
void configure (const Configurations &configurations)
 Configures the logger using specified configurations. More...
 
void reconfigure (void)
 Reconfigures logger using existing configurations. More...
 
const std::string & id (void) const
 
const std::string & parentApplicationName (void) const
 
void setParentApplicationName (const std::string &parentApplicationName)
 
Configurationsconfigurations (void)
 
base::TypedConfigurationstypedConfigurations (void)
 
void flush (void)
 Flushes logger to sync all log files for all levels. More...
 
void flush (Level level, base::type::fstream_t *fs)
 
bool isFlushNeeded (Level level)
 
LogBuilderlogBuilder (void) const
 
void setLogBuilder (const LogBuilderPtr &logBuilder)
 
bool enabled (Level level) const
 
 Logger (const std::string &id, base::LogStreamsReferenceMap *logStreamsReference)
 
 Logger (const std::string &id, const Configurations &configurations, base::LogStreamsReferenceMap *logStreamsReference)
 
 Logger (const Logger &logger)
 
Loggeroperator= (const Logger &logger)
 
virtual ~Logger (void)
 
virtual void log (el::base::type::ostream_t &os) const
 
void configure (const Configurations &configurations)
 Configures the logger using specified configurations. More...
 
void reconfigure (void)
 Reconfigures logger using existing configurations. More...
 
const std::string & id (void) const
 
const std::string & parentApplicationName (void) const
 
void setParentApplicationName (const std::string &parentApplicationName)
 
Configurationsconfigurations (void)
 
base::TypedConfigurationstypedConfigurations (void)
 
void flush (void)
 Flushes logger to sync all log files for all levels. More...
 
void flush (Level level, base::type::fstream_t *fs)
 
bool isFlushNeeded (Level level)
 
LogBuilderlogBuilder (void) const
 
void setLogBuilder (const LogBuilderPtr &logBuilder)
 
bool enabled (Level level) const
 
 Logger (const std::string &id, base::LogStreamsReferenceMap *logStreamsReference)
 
 Logger (const std::string &id, const Configurations &configurations, base::LogStreamsReferenceMap *logStreamsReference)
 
 Logger (const Logger &logger)
 
Loggeroperator= (const Logger &logger)
 
virtual ~Logger (void)
 
virtual void log (el::base::type::ostream_t &os) const
 
void configure (const Configurations &configurations)
 Configures the logger using specified configurations. More...
 
void reconfigure (void)
 Reconfigures logger using existing configurations. More...
 
const std::string & id (void) const
 
const std::string & parentApplicationName (void) const
 
void setParentApplicationName (const std::string &parentApplicationName)
 
Configurationsconfigurations (void)
 
base::TypedConfigurationstypedConfigurations (void)
 
void flush (void)
 Flushes logger to sync all log files for all levels. More...
 
void flush (Level level, base::type::fstream_t *fs)
 
bool isFlushNeeded (Level level)
 
LogBuilderlogBuilder (void) const
 
void setLogBuilder (const LogBuilderPtr &logBuilder)
 
bool enabled (Level level) const
 
- Public Member Functions inherited from el::base::threading::ThreadSafe
virtual void acquireLock (void) ELPP_FINAL
 
virtual void releaseLock (void) ELPP_FINAL
 
virtual base::threading::Mutexlock (void) ELPP_FINAL
 
virtual void acquireLock (void) ELPP_FINAL
 
virtual void releaseLock (void) ELPP_FINAL
 
virtual base::threading::Mutexlock (void) ELPP_FINAL
 
virtual void acquireLock (void) ELPP_FINAL
 
virtual void releaseLock (void) ELPP_FINAL
 
virtual base::threading::Mutexlock (void) ELPP_FINAL
 
- Public Member Functions inherited from el::Loggable
virtual ~Loggable (void)
 
virtual ~Loggable (void)
 
virtual ~Loggable (void)
 

Static Public Member Functions

static bool isValidId (const std::string &id)
 
static bool isValidId (const std::string &id)
 
static bool isValidId (const std::string &id)
 

Friends

class el::LogMessage
 
class el::Loggers
 
class el::Helpers
 
class el::base::RegisteredLoggers
 
class el::base::DefaultLogDispatchCallback
 
class el::base::MessageBuilder
 
class el::base::Writer
 
class el::base::PErrorWriter
 
class el::base::Storage
 
class el::base::PerformanceTracker
 
class el::base::LogDispatcher
 

Additional Inherited Members

- Protected Member Functions inherited from el::base::threading::ThreadSafe
 ThreadSafe (void)
 
virtual ~ThreadSafe (void)
 
 ThreadSafe (void)
 
virtual ~ThreadSafe (void)
 
 ThreadSafe (void)
 
virtual ~ThreadSafe (void)
 

Detailed Description

Represents a logger holding ID and configurations we need to write logs.

This class does not write logs itself instead its used by writer to read configuations from.

Constructor & Destructor Documentation

el::Logger::Logger ( const std::string &  id,
base::LogStreamsReferenceMap logStreamsReference 
)
inline
el::Logger::Logger ( const std::string &  id,
const Configurations configurations,
base::LogStreamsReferenceMap logStreamsReference 
)
inline
el::Logger::Logger ( const Logger logger)
inline
virtual el::Logger::~Logger ( void  )
inlinevirtual
el::Logger::Logger ( const std::string &  id,
base::LogStreamsReferenceMap logStreamsReference 
)
inline
el::Logger::Logger ( const std::string &  id,
const Configurations configurations,
base::LogStreamsReferenceMap logStreamsReference 
)
inline
el::Logger::Logger ( const Logger logger)
inline
virtual el::Logger::~Logger ( void  )
inlinevirtual
el::Logger::Logger ( const std::string &  id,
base::LogStreamsReferenceMap logStreamsReference 
)
inline
el::Logger::Logger ( const std::string &  id,
const Configurations configurations,
base::LogStreamsReferenceMap logStreamsReference 
)
inline
el::Logger::Logger ( const Logger logger)
inline
virtual el::Logger::~Logger ( void  )
inlinevirtual

Member Function Documentation

Configurations* el::Logger::configurations ( void  )
inline
Configurations* el::Logger::configurations ( void  )
inline
Configurations* el::Logger::configurations ( void  )
inline
void el::Logger::configure ( const Configurations configurations)
inline

Configures the logger using specified configurations.

void el::Logger::configure ( const Configurations configurations)
inline

Configures the logger using specified configurations.

void el::Logger::configure ( const Configurations configurations)
inline

Configures the logger using specified configurations.

bool el::Logger::enabled ( Level  level) const
inline
bool el::Logger::enabled ( Level  level) const
inline
bool el::Logger::enabled ( Level  level) const
inline
void el::Logger::flush ( void  )
inline

Flushes logger to sync all log files for all levels.

void el::Logger::flush ( void  )
inline

Flushes logger to sync all log files for all levels.

void el::Logger::flush ( void  )
inline

Flushes logger to sync all log files for all levels.

void el::Logger::flush ( Level  level,
base::type::fstream_t fs 
)
inline
void el::Logger::flush ( Level  level,
base::type::fstream_t fs 
)
inline
void el::Logger::flush ( Level  level,
base::type::fstream_t fs 
)
inline
const std::string& el::Logger::id ( void  ) const
inline
const std::string& el::Logger::id ( void  ) const
inline
const std::string& el::Logger::id ( void  ) const
inline
bool el::Logger::isFlushNeeded ( Level  level)
inline
bool el::Logger::isFlushNeeded ( Level  level)
inline
bool el::Logger::isFlushNeeded ( Level  level)
inline
static bool el::Logger::isValidId ( const std::string &  id)
inlinestatic
static bool el::Logger::isValidId ( const std::string &  id)
inlinestatic
static bool el::Logger::isValidId ( const std::string &  id)
inlinestatic
virtual void el::Logger::log ( el::base::type::ostream_t os) const
inlinevirtual

Implements el::Loggable.

virtual void el::Logger::log ( el::base::type::ostream_t os) const
inlinevirtual

Implements el::Loggable.

virtual void el::Logger::log ( el::base::type::ostream_t os) const
inlinevirtual

Implements el::Loggable.

LogBuilder* el::Logger::logBuilder ( void  ) const
inline
LogBuilder* el::Logger::logBuilder ( void  ) const
inline
LogBuilder* el::Logger::logBuilder ( void  ) const
inline
Logger& el::Logger::operator= ( const Logger logger)
inline
Logger& el::Logger::operator= ( const Logger logger)
inline
Logger& el::Logger::operator= ( const Logger logger)
inline
const std::string& el::Logger::parentApplicationName ( void  ) const
inline
const std::string& el::Logger::parentApplicationName ( void  ) const
inline
const std::string& el::Logger::parentApplicationName ( void  ) const
inline
void el::Logger::reconfigure ( void  )
inline

Reconfigures logger using existing configurations.

void el::Logger::reconfigure ( void  )
inline

Reconfigures logger using existing configurations.

void el::Logger::reconfigure ( void  )
inline

Reconfigures logger using existing configurations.

void el::Logger::setLogBuilder ( const LogBuilderPtr logBuilder)
inline
void el::Logger::setLogBuilder ( const LogBuilderPtr logBuilder)
inline
void el::Logger::setLogBuilder ( const LogBuilderPtr logBuilder)
inline
void el::Logger::setParentApplicationName ( const std::string &  parentApplicationName)
inline
void el::Logger::setParentApplicationName ( const std::string &  parentApplicationName)
inline
void el::Logger::setParentApplicationName ( const std::string &  parentApplicationName)
inline
base::TypedConfigurations* el::Logger::typedConfigurations ( void  )
inline
base::TypedConfigurations* el::Logger::typedConfigurations ( void  )
inline
base::TypedConfigurations* el::Logger::typedConfigurations ( void  )
inline

Friends And Related Function Documentation

el::Helpers
friend
el::Loggers
friend

The documentation for this class was generated from the following files: