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 110 of file logger.h.

Constructor & Destructor Documentation

◆ Logger()

Logger::Logger ( )

Definition at line 102 of file logger.cpp.

◆ ~Logger()

Logger::~Logger ( )

Definition at line 104 of file logger.cpp.

Member Function Documentation

◆ get()

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

Definition at line 113 of file logger.cpp.

◆ logMessage()

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

Definition at line 129 of file logger.cpp.

◆ logRecord()

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

DoLogRecord public wrapper.

Definition at line 120 of file logger.cpp.

Member Data Documentation

◆ info

wxLogRecordInfo Logger::info
protected

Definition at line 125 of file logger.h.

◆ level

wxLogLevel Logger::level
protected

Definition at line 126 of file logger.h.

◆ os

std::stringstream Logger::os
protected

Definition at line 124 of file logger.h.


The documentation for this class was generated from the following files: