AuxPort 0.2
Modules for Audio Software Development
Loading...
Searching...
No Matches
AuxPort::Logger Class Reference

This class provides static interfaces to allow the end user to log their messages on the console. More...

#include <AuxLog.h>

Static Public Member Functions

template<class T >
static void Log (const T &message, const LogType &logType=LogType::Info, const ColourType &colourType=ColourType::White, const AuxPort::Time::TimeType &timeType=AuxPort::Time::TimeType::time)
 Log is a function that allows you to log "string" messages on the console.
 
template<class T >
static void Log (const std::vector< T > &messages, const LogType &logType=LogType::Info, const ColourType &colourType=ColourType::White, const AuxPort::Time::TimeType &timeType=AuxPort::Time::TimeType::time)
 Log is a function that allows you to log "string" messages on the console.
 

Detailed Description

This class provides static interfaces to allow the end user to log their messages on the console.

It also consists of Logging directives such as Info, Warning, Error, Success which are implemented in the form of interfaces.

Example:

static void Log(const T &message, const LogType &logType=LogType::Info, const ColourType &colourType=ColourType::White, const AuxPort::Time::TimeType &timeType=AuxPort::Time::TimeType::time)
Log is a function that allows you to log "string" messages on the console.
Definition AuxLog.h:165

Definition at line 154 of file AuxLog.h.

Member Function Documentation

◆ Log() [1/2]

template<class T >
static void AuxPort::Logger::Log ( const std::vector< T > & messages,
const LogType & logType = LogType::Info,
const ColourType & colourType = ColourType::White,
const AuxPort::Time::TimeType & timeType = AuxPort::Time::TimeType::time )
inlinestatic

Log is a function that allows you to log "string" messages on the console.

Parameters
messagesMessages to be logged
logTypeThis tells the function to which type of message is to be logged on the console. (Eg: Error, Warning, Success, Info)
colourTypeAllows you to choose the colour of your logged message
timeTypeAllows you to choose between different date or time stamps for the logged messages.

Definition at line 180 of file AuxLog.h.

◆ Log() [2/2]

template<class T >
static void AuxPort::Logger::Log ( const T & message,
const LogType & logType = LogType::Info,
const ColourType & colourType = ColourType::White,
const AuxPort::Time::TimeType & timeType = AuxPort::Time::TimeType::time )
inlinestatic

Log is a function that allows you to log "string" messages on the console.

Parameters
messageMessage to be logged
logTypeThis tells the function to which type of message is to be logged on the console. (Eg: Error, Warning, Success, Info)
colourTypeAllows you to choose the colour of your logged message
timeTypeAllows you to choose between different date or time stamps for the logged messages.

Definition at line 165 of file AuxLog.h.


The documentation for this class was generated from the following files: