34 lines
709 B
C++
34 lines
709 B
C++
#pragma once
|
|
|
|
#include "Sink.h"
|
|
#include "Common.h"
|
|
#include <vector>
|
|
#include <map>
|
|
#include "lib/config/protos/threads.pb.h"
|
|
|
|
namespace bts {
|
|
namespace log {
|
|
|
|
struct LoggingConfig {
|
|
LoggingConfig() :
|
|
logger_initial_queue_size(120000),
|
|
logger_max_queue_growth(4),
|
|
sinks(),
|
|
level_names(),
|
|
subsystem_names(),
|
|
deployment_type("dev"),
|
|
thread_cfg()
|
|
{
|
|
}
|
|
|
|
size_t logger_initial_queue_size = 0;
|
|
size_t logger_max_queue_growth = 0;
|
|
std::map<std::string,std::pair<Sink,Filter>> sinks;
|
|
std::map<Level,std::string> level_names;
|
|
std::map<Subsystem,std::string> subsystem_names;
|
|
std::string deployment_type;
|
|
config::ThreadGroupCfg thread_cfg;
|
|
};
|
|
|
|
}}
|