Photon Common Library
2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ELogLevel.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Common/Log/logger_fwd.h
"
4
5
namespace
ph
6
{
7
8
enum class
ELogLevel
9
{
10
Debug
,
11
Note
,
12
Warning
,
13
Error
,
14
DebugOnce
,
15
NoteOnce
,
16
WarningOnce
,
17
ErrorOnce
18
};
19
20
inline
constexpr
bool
is_once
(
const
ELogLevel
logLevel)
21
{
22
switch
(logLevel)
23
{
24
case
ELogLevel::DebugOnce
:
25
case
ELogLevel::NoteOnce
:
26
case
ELogLevel::WarningOnce
:
27
case
ELogLevel::ErrorOnce
:
28
return
true
;
29
30
default
:
31
return
false
;
32
}
33
}
34
35
}
// end namespace ph
logger_fwd.h
ph
The root for all renderer implementations.
Definition
assertion.h:9
ph::is_once
constexpr bool is_once(const ELogLevel logLevel)
Definition
ELogLevel.h:20
ph::ELogLevel
ELogLevel
Definition
ELogLevel.h:9
ph::ELogLevel::ErrorOnce
@ ErrorOnce
ph::ELogLevel::Warning
@ Warning
ph::ELogLevel::DebugOnce
@ DebugOnce
ph::ELogLevel::Note
@ Note
ph::ELogLevel::NoteOnce
@ NoteOnce
ph::ELogLevel::Error
@ Error
ph::ELogLevel::WarningOnce
@ WarningOnce
ph::ELogLevel::Debug
@ Debug
Include
Common
Log
ELogLevel.h
Generated by
1.11.0