paysages3d/src/system/Logs.h

30 lines
549 B
C
Raw Normal View History

#ifndef LOGS_H
#define LOGS_H
#include "system_global.h"
#include <iostream>
namespace paysages {
namespace system {
/**
* Logger streams
*/
2015-12-08 23:34:08 +00:00
class SYSTEMSHARED_EXPORT Logs {
public:
2015-12-13 19:08:38 +00:00
static ostream &debug(const string &logger);
static ostream &warning(const string &logger);
static ostream &error(const string &logger);
2015-09-14 17:25:54 +00:00
// Log a timestamp on the debug output
2015-12-13 19:08:38 +00:00
static void debugTimestamp(const string &logger, const string &message);
2015-09-14 17:25:54 +00:00
// Disable all logs from now on
static void disable();
};
}
}
#endif // LOGS_H