Subversion Repositories HomeAutomation

Rev

Details | 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>
1311 runge 13
#include "utils/Utils.h"
1309 runge 14
 
15
namespace atom {
16
namespace utils {
17
 
18
using namespace std;
19
 
20
class Logger
21
{
22
public:
23
    Logger();
24
    virtual ~Logger();
25
 
26
    void setName(string className);
27
 
28
    void info(string message);
29
    void debug(string message);
30
    void warn(string message);
31
    void error(string message);
32
    void fatal(string message);
33
 
34
private:
1311 runge 35
    string myClassName;
1309 runge 36
};
37
 
38
}
39
}
40
 
41
#endif /* LOGGER_H_ */