blob: 9ff1bf3126f71e2f26138dacf2187e5c68b83bb6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/utils/logging/LogLevel.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <cassert>
using namespace Aws::Utils::Logging;
namespace Aws
{
namespace Utils
{
namespace Logging
{
Aws::String GetLogLevelName(LogLevel logLevel)
{
switch (logLevel)
{
case LogLevel::Fatal:
return "FATAL";
case LogLevel::Error:
return "ERROR";
case LogLevel::Warn:
return "WARN";
case LogLevel::Info:
return "INFO";
case LogLevel::Debug:
return "DEBUG";
case LogLevel::Trace:
return "TRACE";
default:
assert(0);
return "";
}
}
} // namespace Logging
} // namespace Utils
} // namespace Aws
|