ArmNN
 20.02
Utils.cpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #include "armnn/Logging.hpp"
6 #include "armnn/Utils.hpp"
7 
8 namespace armnn
9 {
10 void ConfigureLogging(bool printToStandardOutput, bool printToDebugOutput, LogSeverity severity)
11 {
12  SetAllLoggingSinks(printToStandardOutput, printToDebugOutput, false);
13  SetLogFilter(severity);
14 }
15 
16 // Defaults to logging completely disabled.
17 // The user of the library must enable it if they want by calling armnn::ConfigureLogging().
18 struct DefaultLoggingConfiguration
19 {
20  DefaultLoggingConfiguration()
21  {
22  ConfigureLogging(false, false, LogSeverity::Trace);
23  }
24 };
25 
26 static DefaultLoggingConfiguration g_DefaultLoggingConfiguration;
27 
28 } // namespace armnn
void SetAllLoggingSinks(bool standardOut, bool debugOut, bool coloured)
Definition: Logging.cpp:146
void ConfigureLogging(bool printToStandardOutput, bool printToDebugOutput, LogSeverity severity)
Configures the logging behaviour of the ARMNN library.
Definition: Utils.cpp:10
Copyright (c) 2020 ARM Limited.
void SetLogFilter(LogSeverity level)
Definition: Logging.cpp:28
LogSeverity
Definition: Utils.hpp:12