Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
configurator.cpp
Go to the documentation of this file.
1
6
#include "
log/configurator.hpp
"
7
8
namespace
kagome::log
{
9
10
namespace
{
11
std::string embedded_config(R
"(
12
# ----------------
13
sinks:
14
- name: console
15
type: console
16
thread: name
17
color: false
18
latency: 0
19
groups:
20
- name: main
21
sink: console
22
level: info
23
is_fallback: true
24
children:
25
- name: libp2p
26
level: off
27
- name: kagome
28
children:
29
- name: profile
30
- name: injector
31
- name: application
32
- name: rpc
33
children:
34
- name: rpc_transport
35
- name: api
36
children:
37
- name: author_api
38
- name: authorship
39
- name: blockchain
40
children:
41
- name: digest_tracker
42
- name: offchain
43
- name: authority
44
- name: crypto
45
children:
46
- name: bip39
47
- name: crypto_store
48
- name: ed25519
49
- name: ecdsa
50
- name: consensus
51
children:
52
- name: babe
53
children:
54
- name: babe_lottery
55
- name: block_appender
56
- name: block_executor
57
- name: block_validator
58
- name: babe_config_repo
59
- name: grandpa
60
children:
61
- name: voting_round
62
- name: runtime
63
children:
64
- name: runtime_api
65
- name: host_api
66
children:
67
- name: memory_extension
68
- name: io_extension
69
- name: crypto_extension
70
- name: storage_extension
71
- name: child_storage_extension
72
- name: offchain_extension
73
- name: misc_extension
74
- name: binaryen
75
- name: wavm
76
- name: metrics
77
- name: telemetry
78
- name: network
79
children:
80
- name: reputation
81
- name: synchronizer
82
- name: kagome_protocols
83
children:
84
- name: state_protocol
85
- name: sync_protocol
86
- name: grandpa_protocol
87
- name: changes_trie
88
- name: storage
89
children:
90
- name: trie
91
- name: transactions
92
- name: pubsub
93
- name: others
94
children:
95
- name: testing
96
- name: debug
97
# ----------------
98
)");
99
}
100
101
Configurator::Configurator
(std::shared_ptr<PrevConfigurator> previous)
102
: ConfiguratorFromYAML(
std
::move(previous), embedded_config) {}
103
104
Configurator::Configurator
(std::shared_ptr<PrevConfigurator> previous,
105
std::string config)
106
: ConfiguratorFromYAML(
std
::move(previous),
std
::move(config)) {}
107
108
Configurator::Configurator
(std::shared_ptr<PrevConfigurator> previous,
109
boost::filesystem::path path)
110
: ConfiguratorFromYAML(
std
::move(previous),
111
std
::filesystem::path(path.string())) {}
112
}
// namespace kagome::log
configurator.hpp
std
STL namespace.
kagome::log::Configurator::Configurator
Configurator(std::shared_ptr< PrevConfigurator > previous)
Definition:
configurator.cpp:101
kagome::log
Definition:
configurator.cpp:8
core
log
configurator.cpp
Generated by
1.8.11