Subversion Repositories HomeAutomation

Rev

Rev 1314 | Details | Compare with Previous | Last modification | View Log | SVN | RSS feed

Rev Author Line No. Line
1309 runge 1
/*
2
 * Logger.h
3
 *
4
 *  Created on: Jul 18, 2009
5
 *      Author: Mattias Runge
6
 */
7
 
8
#ifndef LOGGER_H_
9
#define LOGGER_H_
10
 
11
#include <string>
12
#include <iostream>
1314 runge 13
#include "utils/convert.h"
14
#include "utils/string.h"
1309 runge 15
 
16
namespace atom {
1315 runge 17
namespace log {
1309 runge 18
 
19
using namespace std;
20
 
21
class Logger
22
{
23
public:
24
    Logger();
25
    virtual ~Logger();
26
 
27
    void setName(string className);
28
 
1314 runge 29
    static string getFormatedTime();
30
 
1309 runge 31
    void info(string message);
32
    void debug(string message);
33
    void warn(string message);
34
    void error(string message);
35
    void fatal(string message);
36
 
37
private:
1311 runge 38
    string myClassName;
1309 runge 39
};
40
 
41
}
42
}
43
 
44
#endif /* LOGGER_H_ */