lintel 0.2.0
Loading...
Searching...
No Matches
LoggerConfiguration.h
Go to the documentation of this file.
1#ifndef LINTEL_LOGGERCONFIGURATION_H
2#define LINTEL_LOGGERCONFIGURATION_H
3
4#include <string>
5#include <vector>
6
8
9namespace lintel {
12{
13private:
15 std::string m_processName;
17 std::string m_pattern;
19 std::string m_level;
21 bool m_isAsync;
23 std::vector<LoggerSinkConfiguration> m_loggerSinks;
24
25public:
32 LoggerConfiguration(std::string processName,
33 std::string pattern,
34 std::string level,
35 bool isAsync,
36 std::vector<LoggerSinkConfiguration> loggerSinks);
37
40 [[nodiscard]] const std::string &getProcessName() const;
41
44 [[nodiscard]] const std::string &getPattern() const;
45
48 [[nodiscard]] const std::string &getLevel() const;
49
52 [[nodiscard]] bool isAsync() const;
53
56 [[nodiscard]] const std::vector<LoggerSinkConfiguration> &getLoggerSinks() const;
57};
58
59}// namespace lintel
60#endif// LINTEL_LOGGERCONFIGURATION_H
Definition LoggerConfiguration.h:12
const std::string & getLevel() const
const std::vector< LoggerSinkConfiguration > & getLoggerSinks() const
const std::string & getPattern() const
const std::string & getProcessName() const
LoggerConfiguration(std::string processName, std::string pattern, std::string level, bool isAsync, std::vector< LoggerSinkConfiguration > loggerSinks)
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9