Guitarix
GxLogger Class Reference

#include <gx_logging.h>

Inheritance diagram for GxLogger:
Collaboration diagram for GxLogger:

Public Types

enum  MsgType { kInfo, kWarning, kError, kMessageTypeCount }
 

Public Member Functions

void unplug_queue ()
 
msg_signal & signal_message ()
 
void print (const char *func, const std::string &msg, MsgType msgtype)
 
void print (const std::string &formatted_msg, MsgType msgtype)
 

Static Public Member Functions

static GxLoggerget_logger ()
 
static void destroy ()
 

Friends

class GxLoggerGuard
 

Detailed Description

Definition at line 35 of file gx_logging.h.

Member Enumeration Documentation

◆ MsgType

Enumerator
kInfo 
kWarning 
kError 
kMessageTypeCount 

Definition at line 37 of file gx_logging.h.

Member Function Documentation

◆ destroy()

void GxLogger::destroy ( )
static

Definition at line 59 of file gx_logging.cpp.

◆ get_logger()

◆ print() [1/2]

void GxLogger::print ( const char *  func,
const std::string &  msg,
GxLogger::MsgType  msgtype 
)

Definition at line 130 of file gx_logging.cpp.

Referenced by gx_engine::debug_trace_param(), and gx_print_logmsg().

◆ print() [2/2]

void GxLogger::print ( const std::string &  formatted_msg,
GxLogger::MsgType  msgtype 
)

Definition at line 134 of file gx_logging.cpp.

◆ signal_message()

GxLogger::msg_signal & GxLogger::signal_message ( )

◆ unplug_queue()

void GxLogger::unplug_queue ( )

Definition at line 82 of file gx_logging.cpp.

Referenced by GxService::GxService(), and TextLoggingBox::TextLoggingBox().

Friends And Related Function Documentation

◆ GxLoggerGuard

friend class GxLoggerGuard
friend

Definition at line 62 of file gx_logging.h.


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