23 #include "fawkes_logger.h" 24 #include <plugins/readylogagent/eclipse_thread.h> 26 #include <logging/logger.h> 27 #include <core/exception.h> 29 #include <eclipseclass.h> 51 if ( EC_succeed != EC_arg( 1 ).is_atom( &log_level ) )
53 printf(
"Could not obtain log level\n" );
58 if ( 0 == strcmp(
"ll_debug", log_level.name() ) )
62 else if ( 0 == strcmp(
"ll_info", log_level.name() ) )
66 else if ( 0 == strcmp(
"ll_warn", log_level.name() ) )
70 else if ( 0 == strcmp(
"ll_error", log_level.name() ) )
76 printf(
"Unknown log level %s\n", log_level.name() );
81 if ( EC_succeed != EC_arg( 2 ).is_string( &log_string ) )
83 printf(
"Could not get 2nd argument of log/2\n" );
87 logger->
log( ll,
"ReadylogAgent", log_string );
informational output about normal procedures
fawkes::Logger * get_logger()
Get the logger.
warning, should be investigated but software still functions, an example is that something was reques...
Logger * logger
This is the Logger member used to access the logger.
error, may be recoverable (software still running) or not (software has to terminate).
static EclipseAgentThread * instance()
Get the EclipseAgentThread instance.
Base class for exceptions in Fawkes.
debug output, relevant only when tracking down problems
void print_trace()
Prints trace to stderr.
virtual void log(LogLevel level, const char *component, const char *format,...)
Log message of given log level.