Photon
1.0.0
Loading...
Searching...
No Matches
sink-inl.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
#ifndef SPDLOG_HEADER_ONLY
7
#include <
spdlog/sinks/sink.h
>
8
#endif
9
10
#include <
spdlog/common.h
>
11
12
SPDLOG_INLINE
bool
spdlog::sinks::sink::should_log
(
spdlog::level::level_enum
msg_level)
const
13
{
14
return
msg_level >=
level_
.load(std::memory_order_relaxed);
15
}
16
17
SPDLOG_INLINE
void
spdlog::sinks::sink::set_level
(
level::level_enum
log_level)
18
{
19
level_.store(log_level, std::memory_order_relaxed);
20
}
21
22
SPDLOG_INLINE
spdlog::level::level_enum
spdlog::sinks::sink::level
()
const
23
{
24
return
static_cast<
spdlog::level::level_enum
>
(level_.load(std::memory_order_relaxed));
25
}
spdlog::sinks::sink::level_
level_t level_
Definition
sink.h:29
spdlog::sinks::sink::set_level
void set_level(level::level_enum log_level)
Definition
sink-inl.h:17
spdlog::sinks::sink::level
level::level_enum level() const
Definition
sink-inl.h:22
spdlog::sinks::sink::should_log
bool should_log(level::level_enum msg_level) const
Definition
sink-inl.h:12
common.h
SPDLOG_INLINE
#define SPDLOG_INLINE
Definition
common.h:47
spdlog::level::level_enum
level_enum
Definition
common.h:233
sink.h
vendor
spdlog
sinks
sink-inl.h
Generated by
1.9.8