ReactPhysics3D: reactphysics3d::Logger Class Reference

| ReactPhysics3D v0.10.2 C++ Physics engine library

Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
reactphysics3d::Logger Class Referenceabstract

This abstract class is the base class used to log information, warnings or errors during the execution of the library code for easier debugging. More...

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

Inheritance diagram for reactphysics3d::Logger:

## Public Types
enum class | Level { Error = 1 , Warning = 2 , Information = 4 }
| Log verbosity levels.
enum class | Category { PhysicCommon , World , Body , Joint , Collider }
| Log categories.

## Public Member Functions
| Logger ()=default
| Constructor.
virtual | ~Logger ()=default
| Destructor.
virtual void | log (Level level, const std::string &physicsWorldName, Category category, const std::string &message, const char *filename, int lineNumber)=0
| Log something.

## Static Public Member Functions
static std::string | getCategoryName (Category category)
| Return the name of a category.
static std::string | getLevelName (Level level)
| Return the name of a level.

## Detailed Description

This abstract class is the base class used to log information, warnings or errors during the execution of the library code for easier debugging.

## Member Function Documentation

## ◆ log()

virtual void reactphysics3d::Logger::log | ( | Level | level,
|  | const std::string & | physicsWorldName,
|  | Category | category,
|  | const std::string & | message,
|  | const char * | filename,
|  | int | lineNumber
| ) |  |
| pure virtual

Log something.

Implemented in reactphysics3d::DefaultLogger.

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

- include/reactphysics3d/utils/Logger.h