2013-12-22 14:04:33 +00:00
|
|
|
#ifndef LOGS_H
|
|
|
|
#define LOGS_H
|
|
|
|
|
|
|
|
#include "system_global.h"
|
|
|
|
|
2015-08-12 22:33:16 +00:00
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
namespace paysages {
|
|
|
|
namespace system {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Logger streams
|
|
|
|
*/
|
2015-11-09 21:30:46 +00:00
|
|
|
class Logs {
|
|
|
|
public:
|
2015-08-12 22:33:16 +00:00
|
|
|
static std::ostream &debug();
|
|
|
|
static std::ostream &warning();
|
|
|
|
static std::ostream &error();
|
|
|
|
|
2015-09-14 17:25:54 +00:00
|
|
|
// Log a timestamp on the debug output
|
|
|
|
static void debugTimestamp(const std::string &message);
|
|
|
|
|
2015-08-12 22:33:16 +00:00
|
|
|
// Disable all logs from now on
|
|
|
|
static void disable();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2013-12-22 14:04:33 +00:00
|
|
|
|
|
|
|
#endif // LOGS_H
|