39 #ifndef ORO_CORELIB_lOGGER_HPP 40 #define ORO_CORELIB_lOGGER_HPP 42 #include "rtt-config.h" 43 #ifndef OROBLD_DISABLE_LOGGING 50 #ifndef OROSEM_PRINTF_LOGGING 126 void allowRealTime();
131 void disallowRealTime();
137 void mayLogStdOut(
bool tf);
143 void mayLogFile(
bool tf);
160 In(
const std::string& module);
169 Logger& in(
const std::string& modname);
175 Logger& out(
const std::string& modname);
180 std::string getLogModule()
const;
186 typedef std::ostream& (*LogFunction)(std::ostream&);
191 static std::ostream& nl(std::ostream& __os);
196 static std::ostream&
endl(std::ostream& __os);
201 static std::ostream& flush(std::ostream& __os);
210 static Logger* Instance(std::ostream& str=std::cerr);
215 static void Release();
242 std::string getLogLine();
247 void setStdStream( std::ostream& stdos );
314 #ifdef OROSEM_LOG4CPP_LOGGING 318 static const std::string log4cppCategoryName;
329 bool mayLogStdOut()
const;
330 bool mayLogFile()
const;
332 Logger(std::ostream& str=std::cerr);
384 #include "Logger.inl" static Logger::LogFunction flushlog()
static Logger::LogFunction nlog()
static std::ostream & nl(std::ostream &__os)
static std::ostream & flush(std::ostream &__os)
static std::ostream & endl(std::ostream &__os)
static Logger * _instance
std::ostream &(* LogFunction)(std::ostream &)
basic_ostreams & endl(basic_ostreams &s)
std::ostream & operator<<(std::ostream &os, const BufferPolicy &bp)
An object oriented wrapper around a non recursive mutex.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
static Logger::LogFunction endlog()