Manager of ERS streams configuration.
More...
#include <Configuration.hpp>
Manager of ERS streams configuration.
The Configuration
class provides API for configuring ERS output streams.
- Author
- Serguei Kolos
- Version
- 1.2
- See also
- ers::debug
-
ers::error
-
ers::fatal
-
ers::information
-
ers::log
-
ers::warning
Definition at line 38 of file Configuration.hpp.
◆ Configuration()
ers::Configuration::Configuration |
( |
| ) |
|
|
private |
Private constructor - can not be called by user code, use the instance()
method instead
- See also
- instance()
Definition at line 34 of file Configuration.cpp.
37{
40}
int m_debug_level
current active level for the debug stream
int m_verbosity_level
current verbosity level for all streams
int read_from_environment(const char *name, int default_value)
◆ debug_level() [1/2]
int ers::Configuration::debug_level |
( |
| ) |
const |
|
inline |
◆ debug_level() [2/2]
void ers::Configuration::debug_level |
( |
int | debug_level | ) |
|
|
inline |
- Parameters
-
debug_level | can be used to set the current debug level |
Definition at line 53 of file Configuration.hpp.
int debug_level() const
returns current debug level
◆ instance()
return the singleton
This method returns the singleton instance. It should be used for every operation on the factory.
- Returns
- a reference to the singleton instance
Singleton instance
Definition at line 22 of file Configuration.cpp.
23{
27
29}
Manager of ERS streams configuration.
static Configuration & instance()
return the singleton
◆ verbosity_level() [1/2]
int ers::Configuration::verbosity_level |
( |
| ) |
const |
|
inline |
◆ verbosity_level() [2/2]
void ers::Configuration::verbosity_level |
( |
int | verbosity_level | ) |
|
can be used to set the current verbosity level
Definition at line 43 of file Configuration.cpp.
44{
46}
int verbosity_level() const
returns current verbosity level
◆ operator<<
◆ SingletonCreator
◆ m_debug_level
int ers::Configuration::m_debug_level |
|
private |
◆ m_verbosity_level
int ers::Configuration::m_verbosity_level |
|
private |
The documentation for this class was generated from the following files: