Rebel Fork Framework
Urho3D::Logger Class Reference

Forwards a message to underlying logger. Use Log::GetLogger to obtain instance of this class. More...

#include <Urho3D/IO/Log.h>

Public Member Functions

 Logger (const Logger &other)=default
 
template<class Arg , class... Args>
void Write (LogLevel level, ea::string_view format, const Arg &arg, const Args &... args) const
 Write formatted message to log if there are extra arguments.
 
void Write (LogLevel level, ea::string_view message) const
 Write message to log as is if there's no extra arguments.
 
template<typename... Args>
void Trace (ea::string_view format, Args... args) const
 
template<typename... Args>
void Debug (ea::string_view format, Args... args) const
 
template<typename... Args>
void Info (ea::string_view format, Args... args) const
 
template<typename... Args>
void Warning (ea::string_view format, Args... args) const
 
template<typename... Args>
void Error (ea::string_view format, Args... args) const
 

Protected Member Functions

 Logger (void *logger)
 

Protected Attributes

void * logger_ = nullptr
 Instance of spdlog logger.
 

Friends

class Log
 

Detailed Description

Forwards a message to underlying logger. Use Log::GetLogger to obtain instance of this class.


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