ReactPhysics3D: reactphysics3d::DefaultLogger::Formatter Class Reference

| ReactPhysics3D v0.10.2 C++ Physics engine library

Loading...
Searching...
No Matches
Public Member Functions | List of all members
reactphysics3d::DefaultLogger::Formatter Class Referenceabstract

Log formatter. More...

`#include <include/reactphysics3d/utils/DefaultLogger.h>`

Inheritance diagram for reactphysics3d::DefaultLogger::Formatter:

## Public Member Functions
| Formatter ()
| Constructor.
virtual | ~Formatter ()
| Destructor.
virtual std::string | getHeader () const
| Return the header to write at the beginning of the stream.
virtual std::string | getTail () const
| Return the tail to write at the end of the stream.
virtual std::string | format (const time_t &time, const std::string &physicsWorldName, const std::string &message, Level level, Category category, const char *filename, int lineNumber)=0
| Format a log message.
std::tm | getLocalTime (const std::time_t &time) const
| Return the current date and time.

## Detailed Description

Log formatter.

## Member Function Documentation

## ◆ format()

virtual std::string reactphysics3d::DefaultLogger::Formatter::format | ( | const time_t & | time,
|  | const std::string & | physicsWorldName,
|  | const std::string & | message,
|  | Level | level,
|  | Category | category,
|  | const char * | filename,
|  | int | lineNumber )
| pure virtual

Format a log message.

Implemented in reactphysics3d::DefaultLogger::HtmlFormatter, and reactphysics3d::DefaultLogger::TextFormatter.

## ◆ getHeader()

virtual std::string reactphysics3d::DefaultLogger::Formatter::getHeader | ( |  | ) | const
| inlinevirtual

Return the header to write at the beginning of the stream.

Reimplemented in reactphysics3d::DefaultLogger::TextFormatter.

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

- include/reactphysics3d/utils/DefaultLogger.h