#include <logging.h>
Logger provides a per-instance log id. Everything else is passed back up to the LoggingManager
Definition at line 225 of file logging.h.
Initializes a new instance of the Logger class.
- Parameters
-
loggingManager | The logging manager. |
id | The identifier for messages coming from this Logger. |
severity | Minimum severity for messages to be created and logged. |
filter_user_data | Should USER data be filtered from output. |
vlog_level | Minimum level for VLOG messages to be created. Note that a severity of kVERBOSE must be provided for VLOG messages to be logged. |
Definition at line 236 of file logging.h.
Severity onnxruntime::logging::Logger::GetSeverity |
( |
| ) |
const |
|
inlinenoexcept |
Get the minimum severity level for log messages to be output.
- Returns
- The severity.
Definition at line 249 of file logging.h.
void onnxruntime::logging::Logger::Log |
( |
const Capture & |
message | ) |
const |
|
inline |
Logs the captured message.
- Parameters
-
Definition at line 286 of file logging.h.
bool onnxruntime::logging::Logger::OutputIsEnabled |
( |
Severity |
severity, |
|
|
DataType |
data_type |
|
) |
| const |
|
inlinenoexcept |
Check if output is enabled for the provided LogSeverity and DataType values.
- Parameters
-
severity | The severity. |
data_type | Type of the data. |
- Returns
- True if a message with these values will be logged.
Definition at line 271 of file logging.h.
Sends a Profiling Event Record to the sink.
- Parameters
-
Definition at line 294 of file logging.h.
void onnxruntime::logging::Logger::SetSeverity |
( |
Severity |
severity | ) |
|
|
inlinenoexcept |
Change the minimum severity level for log messages to be output.
- Parameters
-
Definition at line 255 of file logging.h.
void onnxruntime::logging::Logger::SetVerbosity |
( |
int |
vlog_level | ) |
|
|
inlinenoexcept |
Change the maximum verbosity level for log messages to be output.
- Parameters
-
Definition at line 263 of file logging.h.
int onnxruntime::logging::Logger::VLOGMaxLevel |
( |
| ) |
const |
|
inlinenoexcept |
Return the maximum VLOG level allowed. Disabled unless logging VLOG messages
Definition at line 278 of file logging.h.
The documentation for this class was generated from the following file: