forked from stellar/stellar-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpdlogTweaks.h
More file actions
23 lines (20 loc) · 1.07 KB
/
Copy pathSpdlogTweaks.h
File metadata and controls
23 lines (20 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2020 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#pragma once
// This file is included in two separate contexts: as part of the compilation of
// the out-of-line (.cpp) portions of spdlog, and also before the inclusion of
// the inline (.h) portions of spdlog.
#define SPDLOG_COMPILED_LIB
#define SPDLOG_FMT_EXTERNAL
#define SPDLOG_NO_THREAD_ID
#define SPDLOG_NO_TLS
// NB: SPDLOG_NO_ATOMIC_LEVELS must remain undefined: stellar logging keeps
// permanent logger objects whose levels can be changed in place while other
// threads are logging through them, so the level reads/writes must be
// atomic. A relaxed atomic load costs the same as a plain load on x86/arm64.
#define SPDLOG_PREVENT_CHILD_FD
#define SPDLOG_LEVEL_NAMES \
{"TRACE", "DEBUG", "INFO", "WARNING", "ERROR", "FATAL", "OFF"}
#define SPDLOG_SHORT_LEVEL_NAMES {"T", "D", "I", "W", "E", "F", "O"}
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE