/* * logger.hpp * * Created on: Oct 19, 2009 * Author: metzler */ #ifndef LOGGER_HPP_ #define LOGGER_HPP_ #include #include "Patterns/Singleton.hpp" using namespace std; class Verbose; class logger : public Singleton { friend class Singleton; public : static ostream *nix; static int verbosity; static bool DoOutput(); static void setVerbosity(int verbosityLevel); protected: /** Do not call this constructor directly, use getInstance() instead. */ logger(); /** Do not call this destructor directly, use purgeInstance() instead. */ ~logger(); }; ostream& operator<<(class logger&l, const Verbose& ost); ostream& operator<<(class logger*l, const Verbose& ost); #endif /* LOGGER_HPP_ */