#include <yarp/os/Log.h>
|
| enum | LogType : uint8_t {
LogTypeUnknown = 0,
TraceType,
DebugType,
InfoType,
WarningType,
ErrorType,
FatalType,
LogTypeReserved = 0xFF
} |
| |
| using | Predicate = bool(*)() |
| |
| using | LogCallback = void(*)(yarp::os::Log::LogType type, const char *msg, const char *file, const unsigned int line, const char *func, double systemtime, double networktime, double externaltime, const char *comp_name) |
| |
|
| | Log (const char *file, const unsigned int line, const char *func, const Predicate pred=nullptr, const LogComponent &comp=defaultLogComponent()) |
| |
| | Log (const char *file, const unsigned int line, const char *func, const double externaltime, const Predicate pred=nullptr, const LogComponent &comp=defaultLogComponent()) |
| |
| | Log () |
| |
| virtual | ~Log () |
| |
| void | trace (const char *msg,...) const |
| |
| void | debug (const char *msg,...) const |
| |
| void | info (const char *msg,...) const |
| |
| void | warning (const char *msg,...) const |
| |
| void | error (const char *msg,...) const |
| |
| void | fatal (const char *msg,...) const |
| |
| LogStream | trace () const |
| |
| LogStream | debug () const |
| |
| LogStream | info () const |
| |
| LogStream | warning () const |
| |
| LogStream | error () const |
| |
| LogStream | fatal () const |
| |
Definition at line 52 of file Log.h.
◆ LogCallback
◆ Predicate
Definition at line 55 of file Log.h.
◆ LogType
| Enumerator |
|---|
| LogTypeUnknown | |
| TraceType | |
| DebugType | |
| InfoType | |
| WarningType | |
| ErrorType | |
| FatalType | |
| LogTypeReserved | |
Definition at line 74 of file Log.h.
◆ Log() [1/3]
| yarp::os::Log::Log |
( |
const char * |
file, |
|
|
const unsigned int |
line, |
|
|
const char * |
func, |
|
|
const Predicate |
pred = nullptr, |
|
|
const LogComponent & |
comp = defaultLogComponent() |
|
) |
| |
◆ Log() [2/3]
| yarp::os::Log::Log |
( |
const char * |
file, |
|
|
const unsigned int |
line, |
|
|
const char * |
func, |
|
|
const double |
externaltime, |
|
|
const Predicate |
pred = nullptr, |
|
|
const LogComponent & |
comp = defaultLogComponent() |
|
) |
| |
◆ Log() [3/3]
◆ ~Log()
◆ debug() [1/2]
◆ debug() [2/2]
| void yarp::os::Log::debug |
( |
const char * |
msg, |
|
|
|
... |
|
) |
| const |
◆ defaultForwardCallback()
Get default forward callback (or nullptr if forwarding is not enabled)
Definition at line 879 of file Log.cpp.
◆ defaultMinimumForwardLevel()
Get default minimum forward level (or LogTypeReserved if forwarding is not enabled)
Definition at line 830 of file Log.cpp.
◆ defaultMinimumPrintLevel()
Get default minimum print level.
Definition at line 810 of file Log.cpp.
◆ defaultPrintCallback()
Get default print callback.
Definition at line 857 of file Log.cpp.
◆ error() [1/2]
◆ error() [2/2]
| void yarp::os::Log::error |
( |
const char * |
msg, |
|
|
|
... |
|
) |
| const |
◆ fatal() [1/2]
◆ fatal() [2/2]
| void yarp::os::Log::fatal |
( |
const char * |
msg, |
|
|
|
... |
|
) |
| const |
◆ forwardCallback()
Get current forward callback (or nullptr if forwarding is not enabled)
Definition at line 874 of file Log.cpp.
◆ info() [1/2]
◆ info() [2/2]
| void yarp::os::Log::info |
( |
const char * |
msg, |
|
|
|
... |
|
) |
| const |
◆ minimumForwardLevel()
Get current minimum forward level (or LogTypeReserved if forwarding is not enabled)
Definition at line 825 of file Log.cpp.
◆ minimumPrintLevel()
Get current minimum print level.
Definition at line 805 of file Log.cpp.
◆ printCallback()
Get current print callback.
Definition at line 852 of file Log.cpp.
◆ setForwardCallback()
| void yarp::os::Log::setForwardCallback |
( |
LogCallback |
cb | ) |
|
|
static |
Set current forward callback (it does nothing if forwarding is not enabled)
Definition at line 867 of file Log.cpp.
◆ setLogCallback()
◆ setMinimumForwardLevel()
| void yarp::os::Log::setMinimumForwardLevel |
( |
LogType |
level | ) |
|
|
static |
Set current minimum forward level (it does nothing if forwarding is not enabled)
Definition at line 818 of file Log.cpp.
◆ setMinimumPrintLevel()
| void yarp::os::Log::setMinimumPrintLevel |
( |
LogType |
level | ) |
|
|
static |
Set current minimum print level.
Definition at line 800 of file Log.cpp.
◆ setPrintCallback()
Set current print callback.
Definition at line 847 of file Log.cpp.
◆ trace() [1/2]
◆ trace() [2/2]
| void yarp::os::Log::trace |
( |
const char * |
msg, |
|
|
|
... |
|
) |
| const |
◆ warning() [1/2]
◆ warning() [2/2]
| void yarp::os::Log::warning |
( |
const char * |
msg, |
|
|
|
... |
|
) |
| const |
The documentation for this class was generated from the following files:
- src/libYARP_os/src/yarp/os/Log.h
- src/libYARP_os/src/yarp/os/Log.cpp