Skip to navigation

holoscan::logger::ILogger

Beta
View as Markdown

Interface for custom logger implementations.

ILogger provides an interface for implementing custom logging mechanisms, allowing the integration of various logging systems with the Logger class.

#include <holoscan/logger/spdlog_logger.hpp>

Constructors

Destructor

~ILogger

virtual holoscan::logger::ILogger::~ILogger() = default

Methods

log

virtual void holoscan::logger::ILogger::log(
const char *file,
int line,
const char *name,
int level,
const char *message,
void *arg
)

Log a message.

Parameters

file
const char *

The name of the source file where the log request originated.

line
int

The line number in the source file.

name
const char *

The name of the function/module making the log request.

level
int

The log level.

message
const char *

The log message.

arg
void *

An optional argument for additional log information.

pattern

virtual void holoscan::logger::ILogger::pattern(
const char *pattern
)

Set the log message pattern.

level

virtual void holoscan::logger::ILogger::level(
int level
)

Set the log level.

redirect

virtual void holoscan::logger::ILogger::redirect(
int level,
void *output
)

Redirect log output to the specified file/output for the given log level.