Make logsink and filter configurable

This commit is contained in:
badaix 2020-04-18 15:32:30 +02:00
parent ad8332345f
commit a2311dfbfd
7 changed files with 242 additions and 85 deletions

View file

@ -51,16 +51,16 @@ struct ServerSettings
std::vector<std::string> bind_to_address{{"0.0.0.0"}};
};
struct LoggingSettings
struct Logging
{
bool debug{false};
std::string debug_logfile{""};
std::string sink{""};
std::string filter{"*:info"};
};
HttpSettings http;
TcpSettings tcp;
StreamSettings stream;
LoggingSettings logging;
Logging logging;
};
#endif