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-12-08 23:34:08 +00:00
|
|
|
class SYSTEMSHARED_EXPORT Logs {
|
2015-11-09 21:30:46 +00:00
|
|
|
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-08-12 22:33:16 +00:00
|
|
|
|
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
|
|
|
|
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
|