mavtables
0.2.1
MAVLink router and firewall.
|
#include <Logger.hpp>
Static Public Member Functions | |
static void | log (std::string message) |
static void | log (unsigned int level, std::string message) |
static void | level (unsigned int level) |
static unsigned int | level () |
A global static logger for use by all of mavtables.
Definition at line 30 of file Logger.hpp.
|
static |
Set the logging level.
A higher level indicates a higher verbosity of logging. A level of 0 will completely disable logging.
level | The new logging level, valid values are 0 to 65535. |
Definition at line 83 of file Logger.cpp.
References level().
|
static |
Get the logging level.
Definition at line 96 of file Logger.cpp.
|
static |
Log a message with timestamp (at level 1).
This will log a message with the current date and time as the timestamp if the loglevel is set to at least 1.
message | The message to log. |
Definition at line 37 of file Logger.cpp.
|
static |
Log a message with timestamp at the given level.
This will log a message with the current date and time as the timestamp if the loglevel is at least level
.
level | The level to log the message at. If the logger's level is lower than this, the message will be discarded. The valid range is 1 to 65535, a value of 0 will be corrected to 1. |
message | The message to log. |
Definition at line 58 of file Logger.cpp.
References level().