Photon Common Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::Logger Class Referencefinal

#include <Logger.h>

Public Member Functions

 Logger ()
 
void log (std::string_view message) const
 
void log (ELogLevel logLevel, std::string_view message) const
 
void log (std::string_view name, ELogLevel logLevel, std::string_view message) const
 
void addLogHandler (LogHandler logHandler)
 Add a log handler that can deal with log messages. Log handler must be copyable.
 

Static Public Member Functions

static LogHandler makeStdOutLogPrinter ()
 
static LogHandler makeColoredStdOutLogPrinter ()
 

Constructor & Destructor Documentation

◆ Logger()

ph::Logger::Logger ( )

Member Function Documentation

◆ addLogHandler()

void ph::Logger::addLogHandler ( LogHandler logHandler)

Add a log handler that can deal with log messages. Log handler must be copyable.

◆ log() [1/3]

void ph::Logger::log ( ELogLevel logLevel,
std::string_view message ) const

◆ log() [2/3]

void ph::Logger::log ( std::string_view message) const

◆ log() [3/3]

void ph::Logger::log ( std::string_view name,
ELogLevel logLevel,
std::string_view message ) const

◆ makeColoredStdOutLogPrinter()

auto ph::Logger::makeColoredStdOutLogPrinter ( )
static

◆ makeStdOutLogPrinter()

auto ph::Logger::makeStdOutLogPrinter ( )
static

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