dev:logging_and_debugging
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dev:logging_and_debugging [2014/09/28 09:33] – ackley | dev:logging_and_debugging [2014/09/28 11:34] (current) – ackley | ||
---|---|---|---|
Line 4: | Line 4: | ||
* The simulator has a logging system accessed via the static object '' | * The simulator has a logging system accessed via the static object '' | ||
- | * The logging system has a ' | + | * The logging system has a ' |
* The logging levels have names and numbers: NONE(0), ERROR(1), WARNING(2), MESSAGE(3), DEBUG(4), DEBUG1(5), DEBUG2(6), DEBUG3(7), and ALL(8). | * The logging levels have names and numbers: NONE(0), ERROR(1), WARNING(2), MESSAGE(3), DEBUG(4), DEBUG1(5), DEBUG2(6), DEBUG3(7), and ALL(8). | ||
* The logging code provides direct methods for producing output at levels ERROR, WARNING, MESSAGE, and DEBUG. | * The logging code provides direct methods for producing output at levels ERROR, WARNING, MESSAGE, and DEBUG. | ||
Line 23: | Line 23: | ||
if the logging level was 3 or higher. | if the logging level was 3 or higher. | ||
* Note the logger adds a newline at the end of each log message, so typically it's expected that each log message will be a single line. | * Note the logger adds a newline at the end of each log message, so typically it's expected that each log message will be a single line. | ||
- | * Use %d for both signed and unsigned ints; there is no ' | + | * Use %d for both signed and unsigned ints; there is no ' |
- | * Grep around in the codebase for examples! | + | * Grep around in the codebase for ' |
dev/logging_and_debugging.1411896827.txt.gz · Last modified: 2014/09/28 09:33 by ackley