1 #ifndef _utl_MessageLoggerConfig_h_
2 #define _utl_MessageLoggerConfig_h_
6 #include <utl/MessageLogger.h>
63 {
return fTheLogger(message, level, trailEOL); }
68 ApplyConfigurationOn(
S& stream)
117 template<
class Stream>
122 mlc.ApplyConfigurationOn(s);
void ApplyConfiguration()
Apply already loaded configuration.
void LoadConfiguration(const Branch &config)
std::ofstream fOutput
Output message sink.
Stream & operator<<(Stream &s, MessageLoggerConfig &mlc)
Applies the configuration to the given stream.
MessageLogger::Message operator()(const T &message, unsigned int level=0, bool trailEOL=true)
Class representing a document branch.
Wraps a message to logger (received as parameter or created here), its access and configuration...
unsigned int fFlushPeriod
The period.
const unsigned int & GetLevel() const
Retrieve (read-only) the current level of verbosity.
void Configure(const Branch &config)
std::unique_ptr< MessageLogger > fOwnLogger
Pointer to self created logger.
unsigned int & GetLevel()
Retrieve by reference the current level of verbosity.
unsigned int fNPrecDigits
Precission digits.
std::string fOutputFilename
Output log filename (if empty, then cout).
Handle diagnosis messages output.
MessageLogger & fTheLogger
The logger to configure.
void SetLevel(unsigned int vl)
Change the level of verbosity.
MessageLoggerConfig()
Create a configurator without any configuration yet.