OpenCPN Partial API docs
Loading...
Searching...
No Matches
Logger Class Reference

Transient logger class, instantiated/used by the LOG macros. More...

#include <logger.h>

Public Member Functions

void logRecord (wxLogLevel level, const char *msg, const wxLogRecordInfo info)
 DoLogRecord public wrapper.
std::ostream & get (wxLogLevel level, const char *path, int line)

Static Public Member Functions

static void logMessage (wxLogLevel level, const char *path, int line, const char *fmt,...)

Protected Attributes

std::stringstream os
wxLogRecordInfo info
wxLogLevel level

Detailed Description

Transient logger class, instantiated/used by the LOG macros.

Definition at line 109 of file logger.h.

Constructor & Destructor Documentation

◆ Logger()

Logger::Logger ( )

Definition at line 101 of file logger.cpp.

◆ ~Logger()

Logger::~Logger ( )

Definition at line 103 of file logger.cpp.

Member Function Documentation

◆ get()

std::ostream & Logger::get ( wxLogLevel level,
const char * path,
int line )

Definition at line 112 of file logger.cpp.

◆ logMessage()

void Logger::logMessage ( wxLogLevel level,
const char * path,
int line,
const char * fmt,
... )
static

Definition at line 128 of file logger.cpp.

◆ logRecord()

void Logger::logRecord ( wxLogLevel level,
const char * msg,
const wxLogRecordInfo info )

DoLogRecord public wrapper.

Definition at line 119 of file logger.cpp.

Member Data Documentation

◆ info

wxLogRecordInfo Logger::info
protected

Definition at line 124 of file logger.h.

◆ level

wxLogLevel Logger::level
protected

Definition at line 125 of file logger.h.

◆ os

std::stringstream Logger::os
protected

Definition at line 123 of file logger.h.


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