Entropy Piano Tuner  1.1.3 (documentation not yet complete)
An open-source experimental software for piano tuning by entropy minimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Log Class Reference

#include <log.h>

+ Inheritance diagram for Log:

Public Member Functions

 Log (bool useLogfile=true)
 
 ~Log ()
 

Static Public Member Functions

static void verbose (const char *text, int line, const char *file, const char *function)
 
static void debug (const char *text, int line, const char *file, const char *function)
 
static void information (const char *text, int line, const char *file, const char *function)
 
static void warning (const char *text, int line, const char *file, const char *function)
 
static void error (const char *text, int line, const char *file, const char *function)
 
static LoggetSingleton ()
 
static LoggetSingletonPtr ()
 

Static Public Attributes

static const std::string LOG_NAME
 

Protected Member Functions

virtual void impl_verbose (const char *l)
 
virtual void impl_debug (const char *l)
 
virtual void impl_information (const char *l)
 
virtual void impl_warning (const char *l)
 
virtual void impl_error (const char *l)
 

Private Types

enum  ELevel {
  LEVEL_VERBOSE, LEVEL_DEBUG, LEVEL_INFORMATION, LEVEL_WARNING,
  LEVEL_ERROR
}
 

Private Member Functions

void writeToLogfile (ELevel level, const char *text, int line, const char *file, const char *function)
 

Static Private Member Functions

static const char * simplify (const char *filename)
 

Private Attributes

std::ofstream mLogStream
 

Static Private Attributes

static std::shared_ptr< LogmLog
 

Detailed Description

Definition at line 67 of file log.h.

Member Enumeration Documentation

enum Log::ELevel
private
Enumerator
LEVEL_VERBOSE 
LEVEL_DEBUG 
LEVEL_INFORMATION 
LEVEL_WARNING 
LEVEL_ERROR 

Definition at line 73 of file log.h.

Constructor & Destructor Documentation

Log::Log ( bool  useLogfile = true)

Definition at line 34 of file log.cpp.

+ Here is the call graph for this function:

Log::~Log ( )

Definition at line 44 of file log.cpp.

Member Function Documentation

void Log::debug ( const char *  text,
int  line,
const char *  file,
const char *  function 
)
static

Definition at line 69 of file log.cpp.

+ Here is the call graph for this function:

void Log::error ( const char *  text,
int  line,
const char *  file,
const char *  function 
)
static

Definition at line 90 of file log.cpp.

static Log& Log::getSingleton ( )
inlinestatic

Definition at line 91 of file log.h.

static Log* Log::getSingletonPtr ( )
inlinestatic

Definition at line 92 of file log.h.

void Log::impl_debug ( const char *  l)
protectedvirtual

Reimplemented in LogForQt.

Definition at line 101 of file log.cpp.

void Log::impl_error ( const char *  l)
protectedvirtual

Reimplemented in LogForQt.

Definition at line 113 of file log.cpp.

void Log::impl_information ( const char *  l)
protectedvirtual

Reimplemented in LogForQt.

Definition at line 105 of file log.cpp.

void Log::impl_verbose ( const char *  l)
protectedvirtual

Reimplemented in LogForQt.

Definition at line 97 of file log.cpp.

void Log::impl_warning ( const char *  l)
protectedvirtual

Reimplemented in LogForQt.

Definition at line 109 of file log.cpp.

void Log::information ( const char *  text,
int  line,
const char *  file,
const char *  function 
)
static

Definition at line 76 of file log.cpp.

+ Here is the call graph for this function:

const char * Log::simplify ( const char *  filename)
staticprivate

Definition at line 49 of file log.cpp.

void Log::verbose ( const char *  text,
int  line,
const char *  file,
const char *  function 
)
static

Definition at line 62 of file log.cpp.

+ Here is the call graph for this function:

void Log::warning ( const char *  text,
int  line,
const char *  file,
const char *  function 
)
static

Definition at line 83 of file log.cpp.

+ Here is the call graph for this function:

void Log::writeToLogfile ( ELevel  level,
const char *  text,
int  line,
const char *  file,
const char *  function 
)
private

Definition at line 117 of file log.cpp.

+ Here is the call graph for this function:

Member Data Documentation

const std::string Log::LOG_NAME
static

Definition at line 70 of file log.h.

std::shared_ptr< Log > Log::mLog
staticprivate

Definition at line 105 of file log.h.

std::ofstream Log::mLogStream
private

Definition at line 106 of file log.h.


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