![]() Slice Tools libFoundation |
example-logging-1.logSample log from example-logging.In this example, --debug 7 is passed to example-logging, which sets the default filter level to MESSAGE_LEVEL_DEBUG_HIGH. This is the most verbose filter level. By default, the name of the logfile is just the name of the program followed by .log, but in this case, an explicit logfile name is given. In either case, the name of the error file will be the same as the logfile, but .log will be replaced with .error. Also by default, the old logfile is deleted, unless the option --append is used. 20050729|114341|31669|MAIN|INFO|0: START: ../../../src/libFoundation/examples/example-logging --debug 7 --logfile ../../../src/libFoundation/examples/example-logging-1.log 20050729|114341|31669|MAIN|INFO|1: Username: mschatz 20050729|114341|31669|MAIN|INFO|2: Hostname: bayberry.umiacs.umd.edu 20050729|114341|31669|A|HIGH|3: Message is at MESSAGE_LEVEL_DEBUG_HIGH 20050729|114341|31669|B|HIGH|4: This message is at the default message level 20050729|114341|31669|A|HIGH|5: Message is at MESSAGE_LEVEL_DEBUG_HIGH 20050729|114341|31669|B|HIGH|6: This message is at the default message level 20050729|114341|31669|A|HIGH|7: Message is at MESSAGE_LEVEL_DEBUG_HIGH 20050729|114341|31669|B|HIGH|8: This message is at the default message level 20050729|114341|31669|A|HIGH|9: Message is at MESSAGE_LEVEL_DEBUG_HIGH 20050729|114341|31669|B|HIGH|10: This message is at the default message level 20050729|114341|31669|A|HIGH|11: Message is at MESSAGE_LEVEL_DEBUG_HIGH 20050729|114341|31669|B|HIGH|12: This message is at the default message level 20050729|114341|31669|A|HIGH|13: Message is at MESSAGE_LEVEL_DEBUG_HIGH 20050729|114341|31669|B|HIGH|14: This message is at the default message level 20050729|114341|31669|A|HIGH|15: Message is at MESSAGE_LEVEL_DEBUG_HIGH 20050729|114341|31669|B|HIGH|16: This message is at the default message level 20050729|114341|31669|MAIN|INFO|17: FINISH: example-logging, elapsed 000-00:00:00 |