The logger mode defines where to print all status, error, and debug messages. Several predefined modes exist (USER, DEVELOPER, SHOWTIME, SILENT). However, the user can also set each file pointer to a location of their choice (CUSTOM mode). The following logger modes exist: USER User mode, for experiment-oriented simulations. Errors and warnings go to stderr, status information goes to stdout. Debug information can only be found in the log file. DEVELOPER Developer mode, for developing and debugging code. Same as user, but additionally, all debug information is printed to stdout. SHOWTIME Showtime mode, will only output warnings and errors. SILENT Silent mode, no output is generated. CUSTOM Custom mode, the user can set the location of all the file pointers.
The following file pointers exist: fpOut_ where CARLSIM_INFO messages go fpErr_ where CARLSIM_ERROR and CARLSIM_WARN messages go fpDeb_ where CARLSIM_DEBUG messages go fpLog_ typically a log file, where all of the above messages go
The file pointers are automatically set to different locations, depending on the loggerMode:
* | USER | DEVELOPER | SHOWTIME | SILENT | CUSTOM
* ---------|------------|------------|------------|------------|---------
* fpOut_ | stdout | stdout | /dev/null | /dev/null | ?
* fpErr_ | stderr | stderr | stderr | /dev/null | ?
* fpDeb_ | /dev/null | stdout | /dev/null | /dev/null | ?
* fpLog_ | debug.log | debug.log | debug.log | /dev/null | ?
*
Location of the debug log file can be set in any mode using CARLsim::setLogDebugFp. In mode CUSTOM, the other file pointers can be set using CARLsim::setLogsFp.
Enumerator |
---|
USER | User mode, for experiment-oriented simulations.
|
DEVELOPER | Developer mode, for developing and debugging code.
|
SHOWTIME | Showtime mode, will only output warnings and errors.
|
SILENT | Silent mode, no output is generated.
|
CUSTOM | Custom mode, the user can set the location of all the file pointers.
|
UNKNOWN_LOGGER | |
Definition at line 92 of file carlsim_datastructures.h.