Photon
1.0.0
Loading...
Searching...
No Matches
helpers.h
Go to the documentation of this file.
1
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
2
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
3
4
#pragma once
5
6
#include <
spdlog/common.h
>
7
#include <unordered_map>
8
9
namespace
spdlog
10
{
11
namespace
cfg
12
{
13
namespace
helpers
14
{
15
//
16
// Init levels from given string
17
//
18
// Examples:
19
//
20
// set global level to debug: "debug"
21
// turn off all logging except for logger1: "off,logger1=debug"
22
// turn off all logging except for logger1 and logger2: "off,logger1=debug,logger2=info"
23
//
24
SPDLOG_API
void
load_levels
(
const
std::string& txt);
25
}
// namespace helpers
26
27
}
// namespace cfg
28
}
// namespace spdlog
29
30
#ifdef SPDLOG_HEADER_ONLY
31
#include "
helpers-inl.h
"
32
#endif
// SPDLOG_HEADER_ONLY
common.h
SPDLOG_API
#define SPDLOG_API
Definition
common.h:45
helpers-inl.h
spdlog::cfg::helpers::load_levels
SPDLOG_INLINE void load_levels(const std::string &input)
Definition
helpers-inl.h:85
spdlog
Definition
async.h:26
vendor
spdlog
cfg
helpers.h
Generated by
1.9.8