Line data Source code
1 : /**
2 : * Copyright Soramitsu Co., Ltd. All Rights Reserved.
3 : * SPDX-License-Identifier: Apache-2.0
4 : */
5 :
6 : #include "main/iroha_conf_literals.hpp"
7 :
8 : namespace config_members {
9 : const char *BlockStorePath = "block_store_path";
10 : const char *ToriiPort = "torii_port";
11 : const char *InternalPort = "internal_port";
12 : const char *KeyPairPath = "key_pair_path";
13 : const char *PgOpt = "pg_opt";
14 : const char *MaxProposalSize = "max_proposal_size";
15 : const char *ProposalDelay = "proposal_delay";
16 : const char *VoteDelay = "vote_delay";
17 : const char *MstSupport = "mst_enable";
18 : const char *MstExpirationTime = "mst_expiration_time";
19 : const char *MaxRoundsDelay = "max_rounds_delay";
20 : const char *StaleStreamMaxRounds = "stale_stream_max_rounds";
21 : const char *LogSection = "log";
22 : const char *LogLevel = "level";
23 : const char *LogPatternsSection = "patterns";
24 : const char *LogChildrenSection = "children";
25 : const std::unordered_map<std::string, logger::LogLevel> LogLevels{
26 1 : {"trace", logger::LogLevel::kTrace},
27 1 : {"debug", logger::LogLevel::kDebug},
28 1 : {"info", logger::LogLevel::kInfo},
29 1 : {"warning", logger::LogLevel::kWarn},
30 1 : {"error", logger::LogLevel::kError},
31 1 : {"critical", logger::LogLevel::kCritical}};
32 : } // namespace config_members
|