HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
severity.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License.
3 
4 #pragma once
5 
6 namespace onnxruntime {
7 namespace logging {
8 // mild violation of naming convention. the 'k' lets us use token concatenation in the macro
9 // ::onnxruntime::Logging::Severity::k##severity. It's not legal to have ::onnxruntime::Logging::Severity::##severity
10 // the uppercase makes the LOG macro usage look as expected for passing an enum value as it will be LOGS(logger, ERROR)
11 enum class Severity {
12  kVERBOSE = 0,
13  kINFO = 1,
14  kWARNING = 2,
15  kERROR = 3,
16  kFATAL = 4
17 };
18 
19 constexpr const char* SEVERITY_PREFIX = "VIWEF";
20 
21 } // namespace logging
22 } // namespace onnxruntime
constexpr const char * SEVERITY_PREFIX
Definition: severity.h:19