#include <LoggerSinkConfiguration.h>
|
| | LoggerSinkConfiguration (LoggerSinkType type, std::string level, std::string pattern) |
| |
| | LoggerSinkConfiguration (LoggerSinkType type, std::string level, std::string pattern, std::string fileName, std::string time) |
| |
| | LoggerSinkConfiguration (LoggerSinkType type, std::string level, std::string pattern, std::string fileName, std::size_t fileSize, std::size_t maxFiles) |
| |
| | LoggerSinkConfiguration (LoggerSinkType type, std::string level, std::string pattern, std::string connection, int32_t port) |
| |
| | LoggerSinkConfiguration (LoggerSinkType type, std::string level, std::string pattern, std::string id) |
| |
| LoggerSinkType | getType () const |
| |
| const std::string & | getLevel () const |
| |
| const std::string & | getPattern () const |
| |
| const std::string & | getFileName () const |
| |
| const std::string & | getTime () const |
| |
| size_t | getFileSize () const |
| |
| const std::string & | getConnection () const |
| |
| int32_t | getPort () const |
| |
| const std::string & | getId () const |
| |
| size_t | getMaxFiles () const |
| |
Configuration for a single logger sink (output destination)
◆ LoggerSinkType
Supported logger sink types
| Enumerator |
|---|
| ConsoleSink | Console output
|
| TcpSink | TCP network output
|
| DailyFileSink | Daily rotating file
|
| RotatingFileSink | Size-based rotating file
|
| SysLogSink | System log output
|
◆ LoggerSinkConfiguration() [1/5]
| lintel::LoggerSinkConfiguration::LoggerSinkConfiguration |
( |
LoggerSinkType |
type, |
|
|
std::string |
level, |
|
|
std::string |
pattern |
|
) |
| |
Construct a console sink configuration
- Parameters
-
| type | The sink type |
| level | The log level |
| pattern | The log pattern |
◆ LoggerSinkConfiguration() [2/5]
| lintel::LoggerSinkConfiguration::LoggerSinkConfiguration |
( |
LoggerSinkType |
type, |
|
|
std::string |
level, |
|
|
std::string |
pattern, |
|
|
std::string |
fileName, |
|
|
std::string |
time |
|
) |
| |
Construct a daily file sink configuration
- Parameters
-
| type | The sink type |
| level | The log level |
| pattern | The log pattern |
| fileName | The base file name |
| time | The rotation time |
◆ LoggerSinkConfiguration() [3/5]
| lintel::LoggerSinkConfiguration::LoggerSinkConfiguration |
( |
LoggerSinkType |
type, |
|
|
std::string |
level, |
|
|
std::string |
pattern, |
|
|
std::string |
fileName, |
|
|
std::size_t |
fileSize, |
|
|
std::size_t |
maxFiles |
|
) |
| |
Construct a rotating file sink configuration
- Parameters
-
| type | The sink type |
| level | The log level |
| pattern | The log pattern |
| fileName | The base file name |
| fileSize | The maximum file size |
| maxFiles | The maximum number of files |
◆ LoggerSinkConfiguration() [4/5]
| lintel::LoggerSinkConfiguration::LoggerSinkConfiguration |
( |
LoggerSinkType |
type, |
|
|
std::string |
level, |
|
|
std::string |
pattern, |
|
|
std::string |
connection, |
|
|
int32_t |
port |
|
) |
| |
Construct a TCP sink configuration
- Parameters
-
| type | The sink type |
| level | The log level |
| pattern | The log pattern |
| connection | The connection string |
| port | The port number |
◆ LoggerSinkConfiguration() [5/5]
| lintel::LoggerSinkConfiguration::LoggerSinkConfiguration |
( |
LoggerSinkType |
type, |
|
|
std::string |
level, |
|
|
std::string |
pattern, |
|
|
std::string |
id |
|
) |
| |
Construct a syslog sink configuration
- Parameters
-
| type | The sink type |
| level | The log level |
| pattern | The log pattern |
| id | The syslog identifier |
◆ getConnection()
| const std::string & lintel::LoggerSinkConfiguration::getConnection |
( |
| ) |
const |
Get the TCP connection string
- Returns
- The connection string
◆ getFileName()
| const std::string & lintel::LoggerSinkConfiguration::getFileName |
( |
| ) |
const |
Get the file name
- Returns
- The file name
◆ getFileSize()
| size_t lintel::LoggerSinkConfiguration::getFileSize |
( |
| ) |
const |
Get the maximum file size
- Returns
- The file size in bytes
◆ getId()
| const std::string & lintel::LoggerSinkConfiguration::getId |
( |
| ) |
const |
Get the syslog identifier
- Returns
- The identifier string
◆ getLevel()
| const std::string & lintel::LoggerSinkConfiguration::getLevel |
( |
| ) |
const |
Get the log level
- Returns
- The level string
◆ getMaxFiles()
| size_t lintel::LoggerSinkConfiguration::getMaxFiles |
( |
| ) |
const |
Get the maximum number of rotated files
- Returns
- The maximum files count
◆ getPattern()
| const std::string & lintel::LoggerSinkConfiguration::getPattern |
( |
| ) |
const |
Get the log pattern
- Returns
- The pattern string
◆ getPort()
| int32_t lintel::LoggerSinkConfiguration::getPort |
( |
| ) |
const |
Get the TCP port
- Returns
- The port number
◆ getTime()
| const std::string & lintel::LoggerSinkConfiguration::getTime |
( |
| ) |
const |
Get the rotation time
- Returns
- The time string
◆ getType()
Get the sink type
- Returns
- The sink type
The documentation for this class was generated from the following file: