#include <Context.hpp>
Classes | |
class | Begin |
class | End |
class | Endl |
Public Member Functions | |
Context () | |
virtual | ~Context () |
template<class ... Items> | |
void | log (SrcInfo const &info, LogId id, Items const &... items) const |
bool | log_enabled (LogId id) const |
template<class ... Items> | |
void | warning (SrcInfo const &info, Items const &... items) const |
Protected Member Functions | |
virtual bool | log_process_enabled (LogId id) const =0 |
virtual void | log_process (SrcInfo const &info, LogId id, std::string const &message) const =0 |
Detailed Description
Classes that print log should also take into consideration class LogStack that contains a call stack-like informations about the log.
Definition at line 14 of file Context.hpp.
Constructor & Destructor Documentation
◆ Context()
iv::Context::Context | ( | ) |
Definition at line 6 of file Context.cpp.
◆ ~Context()
|
inlinevirtual |
Definition at line 18 of file Context.hpp.
Member Function Documentation
◆ log()
void iv::Context::log | ( | SrcInfo const & | info, |
LogId | id, | ||
Items const &... | items | ||
) | const |
All the items will be stringified with StringIO_Write and joined together into a (potentialy multiline) log message.
Definition at line 47 of file Context.inl.
◆ log_enabled()
bool iv::Context::log_enabled | ( | LogId | id | ) | const |
Definition at line 12 of file Context.cpp.
◆ warning()
void iv::Context::warning | ( | SrcInfo const & | info, |
Items const &... | items | ||
) | const |
Calls Context::log with LogId ::ivorium::Defs::Log::Warning.
Definition at line 66 of file Context.inl.
◆ log_process_enabled()
|
protectedpure virtual |
Method log_process will not be called if this returns false. This allows us to avoid performance consuming string building.
Implemented in iv::ClientMarker, and iv::System.
◆ log_process()
|
protectedpure virtual |
Implemented in iv::ClientMarker, and iv::System.
The documentation for this class was generated from the following files:
- ivorium_core/Basics/Context.hpp
- ivorium_core/Basics/Context.cpp
- ivorium_core/Basics/Context.inl