stderrlogger.hpp 373 Bytes
Newer Older
Swann Perarnau's avatar
Swann Perarnau committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#ifndef __STDERRLOGGER_HPP__
#define __STDERRLOGGER_HPP__
#include "ilogger.hpp"

class Stderrlogger: public ILogger
{
	public:
		Stderrlogger(uid_t ruid, Log_type log_type = LOG_TYPE_ALL);
		~Stderrlogger();
		virtual void log(Log_type type, const string& message, int errnum = 0);
		virtual inline Log_dest log_destination() const 
		{return LOG_DEST_STDERR;}
};

#endif