Logging and Routing
The CLIPS Environment manager provides a custom CLIPS logger that logs CLIPS output to ROS and also saves CLIPS output of each environment to files if configured so. The log files are stored at the ROS logging directory “~/.ros/log/” and are named using the name of the environment followed by a timestamp.
For log routing inside CLIPS, the custom loggers accepts the following logical names that log to the file and additionally also in some cases to ROS:
l,t,info,loginfolog viaRCLCPP_INFO
green,blue,yellow,magenta,cyan,white,boldlog viaRCLCPP_INFOwith additional ANSI escape codes for color output (for terminals that support them)
debug,logdebuglog viaRCLCPP_DEBUG
warn,logwarn,stdwrnlog viaRCLCPP_WARN
error,logerror,stderrlog viaRCLCPP_ERROR
stdoutlogs viaRCLPP_INFOunless the environment has the configurationredirect_stdout_to_debugset totrue, then it logs viaRCLCPP_DEBUG