|
Monero
|
Represents a logger holding ID and configurations we need to write logs. More...
#include <easylogging++.h>


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) | |
| Logger & | operator= (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. | |
| void | reconfigure (void) |
| Reconfigures logger using existing configurations. | |
| const std::string & | id (void) const |
| const std::string & | parentApplicationName (void) const |
| void | setParentApplicationName (const std::string &parentApplicationName) |
| Configurations * | configurations (void) |
| base::TypedConfigurations * | typedConfigurations (void) |
| void | flush (void) |
| Flushes logger to sync all log files for all levels. | |
| void | flush (Level level, base::type::fstream_t *fs) |
| bool | isFlushNeeded (Level level) |
| LogBuilder * | logBuilder (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::Mutex & | lock (void) ELPP_FINAL |
| Public Member Functions inherited from el::Loggable | |
| virtual | ~Loggable (void) |
Static Public Member Functions | |
| static bool | isValidId (const std::string &id) |
Private Member Functions | |
| Logger (void) | |
| void | initUnflushedCount (void) |
| base::type::stringstream_t & | stream (void) |
| void | resolveLoggerFormatSpec (void) const |
Private Attributes | |
| std::string | m_id |
| base::TypedConfigurations * | m_typedConfigurations |
| base::type::stringstream_t | m_stream |
| std::string | m_parentApplicationName |
| bool | m_isConfigured |
| Configurations | m_configurations |
| std::unordered_map< Level, unsigned int > | m_unflushedCount |
| base::LogStreamsReferenceMap * | m_logStreamsReference |
| LogBuilderPtr | m_logBuilder |
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) |
Represents a logger holding ID and configurations we need to write logs.
@detail This class does not write logs itself instead its used by writer to read configuations from.
| el::Logger::Logger | ( | const std::string & | id, |
| base::LogStreamsReferenceMap * | logStreamsReference ) |
| el::Logger::Logger | ( | const std::string & | id, |
| const Configurations & | configurations, | ||
| base::LogStreamsReferenceMap * | logStreamsReference ) |
| el::Logger::Logger | ( | const Logger & | logger | ) |
|
inlinevirtual |
|
private |
|
inline |
| void el::Logger::configure | ( | const Configurations & | configurations | ) |
Configures the logger using specified configurations.
|
inline |
| void el::Logger::flush | ( | Level | level, |
| base::type::fstream_t * | fs ) |
| void el::Logger::flush | ( | void | ) |
Flushes logger to sync all log files for all levels.
|
inline |
|
private |
|
inline |
|
static |
|
inlinevirtual |
Implements el::Loggable.
|
inline |
|
inline |
| void el::Logger::reconfigure | ( | void | ) |
Reconfigures logger using existing configurations.
|
private |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |