holoscan::logger::SpdlogLogger
holoscan::logger::SpdlogLogger
Logger backed by spdlog.
Creates a default spdlog-based ILogger when no custom logger/function is supplied.
Inherits from: holoscan::logger::Logger (public)
Constructors
SpdlogLogger
Create a logger with the given name and optional custom logger/log function.
If neither is provided, a default spdlog logger is created.
Methods
pattern_string
Return a reference to the log pattern string.
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.
Get the current custom log function.
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.