log.inc
log.inc
CPP1/****h* PawnLibs/log2 * Description3 * Interfaces for printing log messages. They accept format string similar to4 * the C language with format specifiers - subsequences beginning with %. A5 * format specifier follows this prototype:6 * %[flags][width][.precision]specifier7 * Specifiers:8 * * c - single character9 * * d - integer number10 * * f,r - floating point number11 * * q,r - fixed point number12 * * s - string13 * * x - hex value14 * * % - % character15 * Flags:16 * * - - Left-justify within the given field width; Right justification is the17 * default18 * * + - Forces to preceed the result with a plus or minus sign (+ or -) even19 * for positive numbers. By default, only negative numbers are preceded20 * with a - sign.21 * * 0 - Left-pads the number with zeroes (0) instead of spaces when padding22 * is specified23 * Width - minimum number of characters to be printed. If the value to be24 * printed is shorter than this number, the result is padded with blank25 * spaces. The value is not truncated even if the result is larger.26 * Precision - this is the number of digits to be printed after the decimal27 * point.28 * The additional arguments following format are formatted and inserted in the29 * resulting string replacing their respective specifiers30 * TBD: check specification31 *32 * Log output contains module number, severity level, application name and33 * timestamp. They saved on flash in a ring buffer - older messages will be34 * overridden.35 *36 * Log filters - currently hardcoded, platform does not provide to configure37 * filters, TBD: describe default filters and how to configure them38 *39 * View logs - only python scripts are available, SDK support TBD: describe40 * log dump, BT in real time, buffering nature, synchronization between41 * modules42 ******/4344/****n* PawnLibs/log/LOG_a45 * Summary46 * Print an assert log message and stop application execution.47 * Synopsis48 */49native LOG_a(const format[], {Float,Fixed,_}:...);50/*51 * Inputs52 * * format - format string53 * * ... - variable values to insert in the resulting string54 ******/5556/****n* PawnLibs/log/LOG_e57 * Summary58 * Print an error log message.59 * Synopsis60 */61native LOG_e(const format[], {Float,Fixed,_}:...);62/*63 * Inputs64 * * format - format string65 * * ... - variable values to insert in the resulting string66 ******/6768/****n* PawnLibs/log/LOG_w69 * Summary70 * Print a warning log message.71 * Synopsis72 */73native LOG_w(const format[], {Float,Fixed,_}:...);74/*75 * Inputs76 * * format - format string77 * * ... - variable values to insert in the resulting string78 ******/7980/****n* PawnLibs/log/LOG_i81 * Summary82 * Print an information log message.83 * Synopsis84 */85native LOG_i(const format[], {Float,Fixed,_}:...);86/*87 * Inputs88 * * format - format string89 * * ... - variable values to insert in the resulting string90 ******/9192/****n* PawnLibs/log/LOG_d93 * Summary94 * Print a debug log message.95 * Synopsis96 */97native LOG_d(const format[], {Float,Fixed,_}:...);98/*99 * Inputs100 * * format - format string101 * * ... - variable values to insert in the resulting string102 ******/103104/****n* PawnLibs/log/LOG_v105 * Summary106 * Print a verbose log message.107 * Synopsis108 */109native LOG_v(const format[], {Float,Fixed,_}:...);110/*111 * Inputs112 * * format - format string113 * * ... - variable values to insert in the resulting string114 ******/115116
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.