Changes between Version 2 and Version 3 of Logging
- Timestamp:
- 2012-08-15T14:58:09Z (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Logging
v2 v3 24 24 }}} 25 25 26 The first argument to `log_init` is application name, the second is the default logging level. Messages with higher level won't be printed at all. 26 The first argument to `log_init` is application name, the second is the default logging level. Messages with higher level won't be printed at all. Normally the (when an application is not being debugged) the logging level should be set to LVL_NOTE. That is, messages with level LVL_NOTE or higher are printed. 27 27 28 28 `log_msg` is a `printf`-like function where first argument is level of the message (its seriousness).