1 #ifndef ORO_CORELIB_LOGGER_INL 2 #define ORO_CORELIB_LOGGER_INL 16 #ifndef OROBLD_DISABLE_LOGGING 24 #if defined(OROSEM_FILE_LOGGING) || defined(OROSEM_REMOTE_LOGGING) 33 #ifdef OROBLD_DISABLE_LOGGING 44 inline bool Logger::mayLog()
const {
48 inline void Logger::mayLogStdOut(
bool ) {
51 inline void Logger::mayLogFile(
bool ) {
Logger & out(const std::string &modname)
The counterpart of in().
std::string getLogModule() const
Get the name of the current Log generating Module.
LogLevel getLogLevel() const
Return the current output loglevel.
void shutdown()
Print a 'goodbye' string in Info, Flush all streams and stop Logging.
static std::ostream & nl(std::ostream &__os)
Insert a newline ' ' in the ostream.
Logger & operator<<(const T &t)
Send (user defined) data into this logger.
void logflush()
Flush log buffers.
A simple logging class to debug/ analyse what is going on in the Orocos system.
void mayLogFile(bool tf)
Toggles the flag if the logger may log to the file stream.
void startup()
Print a 'welcome' string in Info and reset log timestamp.
std::string getLogLine()
This method gets all messages upto level Info and can be freely read by the user, removing the line f...
void disallowRealTime()
Disallow messages of the LogLevel 'RealTime' to appear on the console.
void mayLogStdOut(bool tf)
Toggles the flag if the logger may log to the standard output stream.
static std::ostream & flush(std::ostream &__os)
Flush the output stream.
static std::ostream & endl(std::ostream &__os)
void lognl()
Add newline without flushing buffers.
In(const std::string &module)
LogLevel
Enumerate all log-levels from absolute silence to everything.
static Logger & log()
As Instance(), but more userfriendly.
void allowRealTime()
Allow messages of the LogLevel 'RealTime' to appear on the console.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
void setStdStream(std::ostream &stdos)
Set the standard output stream.
void logendl()
Add endl and flush buffers.
Logger & in(const std::string &modname)
Inform the Logger of the entry of a module.
void setLogLevel(LogLevel ll)
Set the loglevel of the outgoing (streamed) messages.
MutexLock is a scope based Monitor, protecting critical sections with a Mutex object through locking ...