This commit is contained in:
Oliver 2019-06-02 18:54:58 +02:00
parent 762cc48220
commit 8169db351e
1 changed files with 11 additions and 11 deletions

6
Log.h
View File

@ -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);