Switchboard SDK
Loading...
Searching...
No Matches
switchboard::Logger Class Reference

Provides logging functionality. More...

#include <Logger.hpp>

Static Public Member Functions

static void setLogDestination (LogDestination *destination)
 Sets the log destination of the logger.
 
static LogDestinationgetLogDestination ()
 Gets the log destination of the logger.
 
static void setLogLevel (LogLevel level)
 Sets the log level of the logger.
 
static LogLevel getLogLevel ()
 Gets the log level of the logger.
 
static void trace (const std::string &logMessage)
 Logs a trace level message.
 
static void debug (const std::string &logMessage)
 Logs a debug level message.
 
static void info (const std::string &logMessage)
 Logs an info level message.
 
static void warning (const std::string &logMessage)
 Logs a warning level message.
 
static void error (const std::string &logMessage)
 Logs an error level message.
 

Detailed Description

Provides logging functionality.

Logger class.

Member Function Documentation

◆ debug()

void switchboard::Logger::debug ( const std::string & logMessage)
static

Logs a debug level message.

Parameters
logMessageThe log message.

◆ error()

void switchboard::Logger::error ( const std::string & logMessage)
static

Logs an error level message.

Parameters
logMessageThe log message.

◆ getLogDestination()

LogDestination * switchboard::Logger::getLogDestination ( )
static

Gets the log destination of the logger.

Returns
The current log destination.

◆ getLogLevel()

LogLevel switchboard::Logger::getLogLevel ( )
static

Gets the log level of the logger.

Returns
The current log level.

◆ info()

void switchboard::Logger::info ( const std::string & logMessage)
static

Logs an info level message.

Parameters
logMessageThe log message.

◆ setLogLevel()

void switchboard::Logger::setLogLevel ( LogLevel level)
static

Sets the log level of the logger.

Parameters
levelThe log level to be set.

◆ trace()

void switchboard::Logger::trace ( const std::string & logMessage)
static

Logs a trace level message.

Parameters
logMessageThe log message.

◆ warning()

void switchboard::Logger::warning ( const std::string & logMessage)
static

Logs a warning level message.

Parameters
logMessageThe log message.