| | 1 | = Logs in Dsx = |
| | 2 | |
| | 3 | == Log levels == |
| | 4 | |
| | 5 | Log levels may be in: |
| | 6 | * NONE |
| | 7 | * TRACE |
| | 8 | * DEBUG |
| | 9 | * MAX |
| | 10 | |
| | 11 | When using a log function (see below), you must specify message type. |
| | 12 | |
| | 13 | There is a current log level defined statically for [wiki:MuteksOptions#Stackusagetracing MutekS] or dynamically for [wiki:Posix#Logs Posix]. |
| | 14 | Only messages having at least current level will be printed. |
| | 15 | |
| | 16 | * If current level is NONE, messages with level NONE will be printed. |
| | 17 | * If current level is TRACE, messages with levels TRACE and NONE will be printed |
| | 18 | * If current level is DEBUG, messages with levels DEBUG, TRACE and NONE will be printed |
| | 19 | * ... |
| | 20 | |
| | 21 | == Log functions == |
| | 22 | |
| | 23 | There are two log functions: |
| | 24 | |
| | 25 | {{{ |
| | 26 | dsx_log( ''level'', ''message'' ) |
| | 27 | }}} |
| | 28 | * level is in defined leg levels |
| | 29 | * message is a fixed string |
| | 30 | |
| | 31 | {{{ |
| | 32 | dsx_log_printf( ''level'', ''fmt'', ... ) |
| | 33 | }}} |
| | 34 | * level is in defined leg levels |
| | 35 | * message is a printf-like format string |
| | 36 | * following arguments are arguments to format string |