39 #ifndef ORO_CORELIB_lOGGER_HPP 40 #define ORO_CORELIB_lOGGER_HPP 43 #ifndef OROBLD_DISABLE_LOGGING 50 #ifndef OROSEM_PRINTF_LOGGING 105 std::ostream& logline;
106 std::ostream& fileline;
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);
LoggerLevel
Enumerate all log-levels from absolute silence to everything.
long long ticks
The type for the systems clock tick.
static std::ostream & nl(std::ostream &__os)
Insert a newline ' ' in the ostream.
This hidden struct stores all data structures required for logging.
A simple logging class to debug/ analyse what is going on in the Orocos system.
basic_ostreams & endl(basic_ostreams &s)
Flush and newline.
RTT_API std::ostream & operator<<(std::ostream &os, FlowStatus fs)
Provides empty inlines when no logging is used, which the compiler can optimize out.
static std::ostream & flush(std::ostream &__os)
Flush the output stream.
static std::ostream & endl(std::ostream &__os)
std::ostream &(* LogFunction)(std::ostream &)
Function signature of the functions that influence the log stream.
LogLevel
Enumerate all log-levels from absolute silence to everything.
Notify the Logger in which 'module' the message occured.
static Logger & log()
As Instance(), but more userfriendly.
An object oriented wrapper around a non recursive mutex.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.