• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 {
ConfigureLogging(bool printToStandardOutput,bool printToDebugOutput,LogSeverity severity)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 {
DefaultLoggingConfigurationarmnn::DefaultLoggingConfiguration20     DefaultLoggingConfiguration()
21     {
22         ConfigureLogging(false, false, LogSeverity::Trace);
23     }
24 };
25 
26 static DefaultLoggingConfiguration g_DefaultLoggingConfiguration;
27 
28 } // namespace armnn