Class SpdlogLogger

Holoscan v2.1.0
class SpdlogLogger : public Logger

Public Functions

explicit SpdlogLogger(const char *name, const std::shared_ptr<ILogger> &logger = nullptr, const LogFunction &func = nullptr)

Create a logger with the given name.

This constructor creates a logger with the given name and optional logger and log function. If no logger or log function is provided, a default spdlog logger will be created.

  • name – The name of the logger.

  • logger – The logger to use (default: nullptr).

  • func – The log function to use (default: nullptr).

std::string &pattern_string()

Return the log pattern.


The reference to the log pattern string.

Protected Attributes

std::string name_

logger name

Previous Class CudaStreamHandler
Next Enum AppWorkerTerminationCode
© Copyright 2022-2024, NVIDIA. Last updated on Jun 17, 2024.