Customized logger class appending to a file providing:
More...
#include <logger.h>
|
| OcpnLog (const char *path) |
| Create logger appending to given filename.
|
|
void | Flush () override |
|
void | DoLogRecord (wxLogLevel level, const wxString &msg, const wxLogRecordInfo &info) override |
|
|
static wxLogLevel | str2level (const char *string) |
|
static std::string | level2str (wxLogLevel level) |
|
Customized logger class appending to a file providing:
- Millisecond timestamps
- Consistent tagging WARNING, ERROR, MESSAGE etc.
- Filename:line info.
Definition at line 88 of file logger.h.
◆ OcpnLog()
OcpnLog::OcpnLog |
( |
const char * |
path | ) |
|
Create logger appending to given filename.
Definition at line 83 of file logger.cpp.
◆ ~OcpnLog()
◆ DoLogRecord()
void OcpnLog::DoLogRecord |
( |
wxLogLevel |
level, |
|
|
const wxString & |
msg, |
|
|
const wxLogRecordInfo & |
info |
|
) |
| |
|
override |
◆ Flush()
◆ level2str()
std::string OcpnLog::level2str |
( |
wxLogLevel |
level | ) |
|
|
static |
◆ str2level()
wxLogLevel OcpnLog::str2level |
( |
const char * |
string | ) |
|
|
static |
◆ log
std::ofstream OcpnLog::log |
|
protected |
◆ LOG_BADLEVEL
const wxLogLevel OcpnLog::LOG_BADLEVEL = wxLOG_Max + 1 |
|
static |
The documentation for this class was generated from the following files:
- /home/runner/work/main/main/opencpn/model/include/model/logger.h
- /home/runner/work/main/main/opencpn/model/src/logger.cpp