blob: 13bf3025f25d853a9209f31a9b843cf13cad1124 (
plain)
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
|
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "armnn/Logging.hpp"
#include "armnn/Utils.hpp"
namespace armnn
{
void ConfigureLogging(bool printToStandardOutput, bool printToDebugOutput, LogSeverity severity)
{
SetAllLoggingSinks(printToStandardOutput, printToDebugOutput, false);
SetLogFilter(severity);
}
// Defaults to logging completely disabled.
// The user of the library must enable it if they want by calling armnn::ConfigureLogging().
struct DefaultLoggingConfiguration
{
DefaultLoggingConfiguration()
{
ConfigureLogging(false, false, LogSeverity::Trace);
}
};
static DefaultLoggingConfiguration g_DefaultLoggingConfiguration;
} // namespace armnn
|