diff options
author | telsoa01 <telmo.soares@arm.com> | 2018-03-09 14:13:49 +0000 |
---|---|---|
committer | telsoa01 <telmo.soares@arm.com> | 2018-03-09 14:13:49 +0000 |
commit | 4fcda0101ec3d110c1d6d7bee5c83416b645528a (patch) | |
tree | c9a70aeb2887006160c1b3d265c27efadb7bdbae /src/armnn/Utils.cpp | |
download | armnn-4fcda0101ec3d110c1d6d7bee5c83416b645528a.tar.gz |
Release 18.02
Change-Id: Id3c11dc5ee94ef664374a988fcc6901e9a232fa6
Diffstat (limited to 'src/armnn/Utils.cpp')
-rw-r--r-- | src/armnn/Utils.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/armnn/Utils.cpp b/src/armnn/Utils.cpp new file mode 100644 index 0000000000..fb8f4d6f72 --- /dev/null +++ b/src/armnn/Utils.cpp @@ -0,0 +1,30 @@ +// +// Copyright © 2017 Arm Ltd. All rights reserved. +// See LICENSE file in the project root for full license information. +// +#include "armnn/Utils.hpp" +#include "Logging.hpp" + +#include <boost/log/core.hpp> + +namespace armnn +{ + +void ConfigureLogging(bool printToStandardOutput, bool printToDebugOutput, LogSeverity severity) +{ + armnnUtils::ConfigureLogging(boost::log::core::get().get(), printToStandardOutput, printToDebugOutput, severity); +} + +// Default 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; + +}
\ No newline at end of file |