-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathconfigurator.hpp
More file actions
31 lines (21 loc) · 836 Bytes
/
configurator.hpp
File metadata and controls
31 lines (21 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* Copyright Quadrivium LLC
* All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <soralog/impl/configurator_from_yaml.hpp>
#include "filesystem/common.hpp"
namespace kagome::log {
class Configurator : public soralog::ConfiguratorFromYAML {
using PrevConfigurator = soralog::Configurator;
public:
Configurator(std::shared_ptr<PrevConfigurator> previous);
explicit Configurator(std::shared_ptr<PrevConfigurator> previous,
std::string config);
explicit Configurator(std::shared_ptr<PrevConfigurator> previous,
filesystem::path path);
static std::optional<filesystem::path> getLogConfigFile(int argc,
const char **argv);
};
} // namespace kagome::log