23 #include "fawkes_logger.h" 24 #include <plugins/eclipse-clp/eclipse_thread.h> 26 #include <logging/logger.h> 27 #include <core/exception.h> 29 #include <eclipseclass.h> 52 if ( EC_succeed != EC_arg( 1 ).is_atom( &log_level ) )
54 printf(
"Could not obtain log level\n" );
59 if ( 0 == strcmp(
"ll_debug", log_level.name() ) )
63 else if ( 0 == strcmp(
"ll_info", log_level.name() ) )
67 else if ( 0 == strcmp(
"ll_warn", log_level.name() ) )
71 else if ( 0 == strcmp(
"ll_error", log_level.name() ) )
77 printf(
"Unknown log level %s\n", log_level.name() );
82 if ( EC_succeed != EC_arg( 2 ).is_string( &log_string ) )
84 printf(
"Could not get 2nd argument of log/2\n" );
88 logger->
log( ll,
"ECLiPSe CLP", 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...
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.