holoscan::logger::Logger
holoscan::logger::Logger
Logger class for logging messages.
Provides a flexible, customizable logging system that can dispatch to a custom ILogger or a custom LogFunction. The custom log function takes priority over the custom logger; if neither is set, no logging occurs.
Constructors
Logger
Default
Construct a logger instance with the custom logger
Overload 3
Overload 4
Methods
log
Log a message using either the custom log function (preferred) or the custom logger.
logger
Mutable
Const
Set / get a custom logger.
func
Mutable
Const
Set a custom log function and an opaque argument passed back to it.
arg
Get the current custom log function argument.
pattern
Mutable
Const
Set / get the log message pattern.
level
Mutable
Const
Set / get the log level.
redirect
Mutable
Const
Redirect log output for a given level, and query the current redirection.