Guitar
Classes | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Logger Class Reference

#include <Logger.h>

Collaboration diagram for Logger:
Collaboration graph
[legend]

Classes

struct  LogItem
 
struct  Private
 

Public Member Functions

 Logger ()
 
 ~Logger ()
 
void x_logprint (const char *file, int line, int level, std::string_view str)
 
void x_logprintf (const char *file, int line, int level, const char *fmt,...)
 

Static Public Member Functions

static void pause (bool f)
 
static void start ()
 
static void stop ()
 
static void open (std::string const &log_file)
 

Private Types

typedef std::chrono::system_clock::time_point time_point_t
 

Private Member Functions

int log_file_permission () const
 
int log_rotate_size () const
 
time_point_t now ()
 
void write (const char *ptr, size_t len)
 
void write (const LogItem &item)
 
void push (const LogItem &item)
 
void rotate ()
 
void x_close ()
 
void x_start ()
 
void x_stop ()
 
void x_pause (bool f)
 
void x_open (const std::string &log_file)
 

Private Attributes

Privatem
 

Member Typedef Documentation

◆ time_point_t

typedef std::chrono::system_clock::time_point Logger::time_point_t
private

Constructor & Destructor Documentation

◆ Logger()

Logger::Logger ( )

◆ ~Logger()

Logger::~Logger ( )
Here is the call graph for this function:

Member Function Documentation

◆ log_file_permission()

int Logger::log_file_permission ( ) const
inlineprivate

◆ log_rotate_size()

int Logger::log_rotate_size ( ) const
inlineprivate

◆ now()

Logger::time_point_t Logger::now ( )
private

◆ open()

void Logger::open ( std::string const &  log_file)
static
Here is the call graph for this function:

◆ pause()

void Logger::pause ( bool  f)
static
Here is the call graph for this function:

◆ push()

void Logger::push ( const LogItem item)
private

◆ rotate()

void Logger::rotate ( )
private
Here is the call graph for this function:

◆ start()

void Logger::start ( )
static
Here is the call graph for this function:

◆ stop()

void Logger::stop ( )
static
Here is the call graph for this function:

◆ write() [1/2]

void Logger::write ( const char *  ptr,
size_t  len 
)
private

◆ write() [2/2]

void Logger::write ( const LogItem item)
private
Here is the call graph for this function:

◆ x_close()

void Logger::x_close ( )
private

◆ x_logprint()

void Logger::x_logprint ( const char *  file,
int  line,
int  level,
std::string_view  str 
)
Here is the call graph for this function:

◆ x_logprintf()

void Logger::x_logprintf ( const char *  file,
int  line,
int  level,
const char *  fmt,
  ... 
)
Here is the call graph for this function:

◆ x_open()

void Logger::x_open ( const std::string &  log_file)
private
Here is the call graph for this function:

◆ x_pause()

void Logger::x_pause ( bool  f)
private

◆ x_start()

void Logger::x_start ( )
private
Here is the call graph for this function:

◆ x_stop()

void Logger::x_stop ( )
private
Here is the call graph for this function:

Member Data Documentation

◆ m

Private* Logger::m
private

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