Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
internal_api_impl.cpp
Go to the documentation of this file.
1
6
#include "
api/service/internal/impl/internal_api_impl.hpp
"
7
8
#include "
log/logger.hpp
"
9
10
namespace
kagome::api
{
11
12
outcome::result<void>
InternalApiImpl::setLogLevel
(
13
const
std::string &group,
const
std::string &level_str) {
14
OUTCOME_TRY(level,
log::str2lvl
(level_str));
15
16
if
(not
log::setLevelOfGroup
(group, level)) {
17
return
log::Error::WRONG_GROUP
;
18
}
19
20
return
outcome::success();
21
}
22
23
}
// namespace kagome::api
kagome::log::Error::WRONG_GROUP
kagome::api::InternalApiImpl::setLogLevel
outcome::result< void > setLogLevel(const std::string &group, const std::string &level) override
Definition:
internal_api_impl.cpp:12
logger.hpp
internal_api_impl.hpp
kagome::log::str2lvl
outcome::result< Level > str2lvl(std::string_view str)
Definition:
logger.cpp:41
kagome::api
Definition:
custom_json_writer.hpp:23
kagome::log::setLevelOfGroup
bool setLevelOfGroup(const std::string &group_name, Level level)
Definition:
logger.cpp:132
core
api
service
internal
impl
internal_api_impl.cpp
Generated by
1.8.11