Logger class.
More...
#include <immersitech_logger.h>
◆ ~imm_logger()
virtual imm_logger::~imm_logger |
( |
| ) |
|
|
virtual |
Destroy the logger object.
◆ get_logger()
Get the logger object.
- Returns
- A pointer to the logger
◆ initialize()
Initialize logger with speficied handler.
◆ log()
virtual void imm_logger::log |
( |
imm_log_level |
level, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
|
virtual |
write a message to a log
- Parameters
-
[in] | level | The log level which this message should be printed with |
[in] | format | A character array that can be overload just like the printf() function. For example: log(IMM_LOG_DEBUG, "The number is %i for participant %s", number, name); |
◆ set_enabled()
void imm_logger::set_enabled |
( |
bool |
enable | ) |
|
Turn the logger on or off.
- Parameters
-
[in] | enable | A boolean describing if you'd like the logger to be active |
◆ set_log_level()
Set the log level.
- Parameters
-
[in] | level | Current log level the logger passes to the log |
◆ to_string()
Convert log level to string.
- Parameters
-
[in] | level | log level as an enum value |
- Returns
- log leve as a string
The documentation for this class was generated from the following file:
- /home/runner/work/Immersitech3D.github.io/Immersitech3D.github.io/sound-manager-sdk/include/immersitech_logger.h