concordia-server/concordia-server/logger.hpp
2015-08-20 12:38:48 +02:00

31 lines
496 B
C++

#ifndef LOGGER_HDR
#define LOGGER_HDR
#include <string>
#include <sstream>
#include "log4cpp/Category.hh"
class Logger {
public:
/*! Constructor.
*/
Logger();
/*! Destructor.
*/
virtual ~Logger();
static void log(std::string message);
static void logInt(std::string name, int value);
static void logString(std::string name, std::string value);
private:
static void _initialize(log4cpp::Category & root);
static int _initialized;
};
#endif