Represents a logger holding ID and configurations we need to write logs. More...
#include <easylogging++.h>
Static Public Member Functions | |
static bool | isValidId (const std::string &id) |
Private Member Functions | |
void | initUnflushedCount (void) |
Logger (void) | |
void | performConfig (const Configurations &configurations) |
void | resolveLoggerFormatSpec (void) const |
base::type::stringstream_t & | stream (void) |
Private Attributes | |
Configurations | m_configurations |
std::string | m_id |
bool | m_isConfigured |
LogBuilderPtr | m_logBuilder |
base::LogStreamsReferenceMap * | m_logStreamsReference |
std::string | m_parentApplicationName |
base::type::stringstream_t | m_stream |
base::TypedConfigurations * | m_typedConfigurations |
std::unordered_map< Level, unsigned int > | m_unflushedCount |
Friends | |
class | el::base::DefaultLogDispatchCallback |
class | el::base::LogDispatcher |
class | el::base::MessageBuilder |
class | el::base::PerformanceTracker |
class | el::base::PErrorWriter |
class | el::base::RegisteredLoggers |
class | el::base::Storage |
class | el::base::Writer |
class | el::Helpers |
class | el::Loggers |
class | el::LogMessage |
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.
This class does not write logs itself instead its used by writer to read configuations from.
Definition at line 2205 of file easylogging++.h.
el::Logger::Logger | ( | const std::string & | id, |
base::LogStreamsReferenceMap * | logStreamsReference | ||
) |
Definition at line 606 of file easylogging++.cc.
el::Logger::Logger | ( | const std::string & | id, |
const Configurations & | configurations, | ||
base::LogStreamsReferenceMap * | logStreamsReference | ||
) |
Definition at line 615 of file easylogging++.cc.
el::Logger::Logger | ( | const Logger & | logger | ) |
Definition at line 626 of file easylogging++.cc.
|
inlinevirtual |
Definition at line 2212 of file easylogging++.h.
|
private |
|
inline |
Definition at line 2238 of file easylogging++.h.
void el::Logger::configure | ( | const Configurations & | configurations | ) |
Configures the logger using specified configurations.
Definition at line 651 of file easylogging++.cc.
|
inline |
Definition at line 2265 of file easylogging++.h.
Flushes logger to sync all log files for all levels.
Definition at line 697 of file easylogging++.cc.
void el::Logger::flush | ( | Level | level, |
base::type::fstream_t * | fs | ||
) |
Definition at line 707 of file easylogging++.cc.
|
inline |
Definition at line 2226 of file easylogging++.h.
Definition at line 721 of file easylogging++.cc.
|
inline |
Definition at line 2253 of file easylogging++.h.
|
static |
Definition at line 688 of file easylogging++.cc.
|
inlinevirtual |
Implements el::Loggable.
Definition at line 2216 of file easylogging++.h.
|
inline |
Definition at line 2257 of file easylogging++.h.
Definition at line 637 of file easylogging++.cc.
|
inline |
Definition at line 2230 of file easylogging++.h.
|
private |
Definition at line 664 of file easylogging++.cc.
Reconfigures logger using existing configurations.
Definition at line 683 of file easylogging++.cc.
Definition at line 730 of file easylogging++.cc.
|
inline |
Definition at line 2261 of file easylogging++.h.
|
inline |
Definition at line 2234 of file easylogging++.h.
|
inlineprivate |
Definition at line 2333 of file easylogging++.h.
|
inline |
Definition at line 2242 of file easylogging++.h.
|
friend |
Definition at line 2307 of file easylogging++.h.
|
friend |
Definition at line 2313 of file easylogging++.h.
|
friend |
Definition at line 2308 of file easylogging++.h.
|
friend |
Definition at line 2312 of file easylogging++.h.
|
friend |
Definition at line 2310 of file easylogging++.h.
|
friend |
Definition at line 2306 of file easylogging++.h.
|
friend |
Definition at line 2311 of file easylogging++.h.
|
friend |
Definition at line 2309 of file easylogging++.h.
|
friend |
Definition at line 2305 of file easylogging++.h.
|
friend |
Definition at line 2304 of file easylogging++.h.
|
friend |
Definition at line 2303 of file easylogging++.h.
|
private |
Definition at line 2298 of file easylogging++.h.
|
private |
Definition at line 2293 of file easylogging++.h.
|
private |
Definition at line 2297 of file easylogging++.h.
|
private |
Definition at line 2301 of file easylogging++.h.
|
private |
Definition at line 2300 of file easylogging++.h.
|
private |
Definition at line 2296 of file easylogging++.h.
|
private |
Definition at line 2295 of file easylogging++.h.
|
private |
Definition at line 2294 of file easylogging++.h.
|
private |
Definition at line 2299 of file easylogging++.h.