wiki:DsxLogging

Logs in Dsx

Log levels

Log levels may be in:

  • NONE
  • TRACE
  • DEBUG
  • MAX

When using a log function (see below), you must specify message type.

There is a current log level defined statically for MutekS or dynamically for Posix. Only messages having at least current level will be printed.

  • If current level is NONE, messages with level NONE will be printed.
  • If current level is TRACE, messages with levels TRACE and NONE will be printed
  • If current level is DEBUG, messages with levels DEBUG, TRACE and NONE will be printed
  • ...

Log functions

There are two log functions:

dsx_log( ''level'', ''message'' )
  • level is in defined leg levels
  • message is a fixed string
dsx_log_printf( ''level'', ''fmt'', ... )
  • level is in defined leg levels
  • message is a printf-like format string
  • following arguments are arguments to format string
Last modified 18 years ago Last modified on Aug 21, 2006, 7:19:26 PM