2017-06-05 13:59:38 +00:00
|
|
|
#include <Interpreters/SystemLog.h>
|
|
|
|
#include <Interpreters/QueryLog.h>
|
2018-05-31 15:54:08 +00:00
|
|
|
#include <Interpreters/QueryThreadLog.h>
|
2017-06-05 13:59:38 +00:00
|
|
|
#include <Interpreters/PartLog.h>
|
|
|
|
|
2018-07-08 04:54:37 +00:00
|
|
|
#include <Poco/Util/AbstractConfiguration.h>
|
|
|
|
|
2017-06-05 13:59:38 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2018-07-08 04:54:37 +00:00
|
|
|
SystemLogs::SystemLogs(Context & global_context, const Poco::Util::AbstractConfiguration & config)
|
|
|
|
{
|
2018-12-14 15:39:48 +00:00
|
|
|
query_log = createDefaultSystemLog<QueryLog>(global_context, "system", "query_log", config, "query_log");
|
|
|
|
query_thread_log = createDefaultSystemLog<QueryThreadLog>(global_context, "system", "query_thread_log", config, "query_thread_log");
|
|
|
|
part_log = createDefaultSystemLog<PartLog>(global_context, "system", "part_log", config, "part_log");
|
2018-07-08 04:54:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-06-05 13:59:38 +00:00
|
|
|
SystemLogs::~SystemLogs() = default;
|
|
|
|
|
|
|
|
}
|