WIP
This commit is contained in:
parent
762cc48220
commit
8169db351e
6
Log.h
6
Log.h
|
@ -8,7 +8,7 @@
|
|||
#include <vector> // list of outputs
|
||||
|
||||
class Log {
|
||||
public:
|
||||
public:
|
||||
enum Level { OFF = 0, FATAL, ERROR, WARN, NOTE, INFO, DEBUG, TRACE };
|
||||
|
||||
// delete ctors as this class is used via static methods only
|
||||
|
@ -22,7 +22,7 @@ class Log {
|
|||
// close all output streams
|
||||
static void stop();
|
||||
|
||||
private:
|
||||
private:
|
||||
// abstract base class for a log sink
|
||||
class Output {
|
||||
public:
|
||||
|
@ -68,7 +68,7 @@ class Log {
|
|||
|
||||
static std::vector<Output*> outputs;
|
||||
|
||||
public:
|
||||
public:
|
||||
static void addLogfile(const std::string& filename, Level max);
|
||||
static void addLogfile(const std::string& filename, Level min, Level max);
|
||||
|
||||
|
|
Loading…
Reference in New Issue