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
,loginfo
log viaRCLCPP_INFO
green
,blue
,yellow
,magenta
,cyan
,white
,bold
log viaRCLCPP_INFO
with additional ANSI escape codes for color output (for terminals that support them)
debug
,logdebug
log viaRCLCPP_DEBUG
warn
,logwarn
,stdwrn
log viaRCLCPP_WARN
error
,logerror
,stderr
log viaRCLCPP_ERROR
stdout
logs viaRCLPP_INFO
unless the environment has the configurationredirect_stdout_to_debug
set totrue
, then it logs viaRCLCPP_DEBUG