WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelog
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.
Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. API
  4. PawnLibs/log
Mission NodeSDK 6.2PawnAPI Reference

PawnLibs/log

PawnLibs/log Description Interfaces for printing log messages. They accept format string similar to the C language with format specifiers subsequences beginn...

API / SDK 6.2 / Pawn / API Reference

PawnLibs/log

Description

Interfaces for printing log messages. They accept format string similar to the C language with format specifiers - subsequences beginning with %. A format specifier follows this prototype:

PawnLibs/log
PAWN
1 %[flags][width][.precision]specifier
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Specifiers:

  • c - single character
  • d - integer number
  • f,r - floating point number
  • q,r - fixed point number
  • s - string
  • x - hex value
  • % - % character

Flags:

  • - - Left-justify within the given field width; Right justification is the default
  • + - Forces to preceed the result with a plus or minus sign (+ or -) even for positive numbers. By default, only negative numbers are preceded with a - sign.
  • 0 - Left-pads the number with zeroes (0) instead of spaces when padding is specified

Width - minimum number of characters to be printed. If the value to be printed is shorter than this number, the result is padded with blank spaces. The value is not truncated even if the result is larger. Precision - this is the number of digits to be printed after the decimal point. The additional arguments following format are formatted and inserted in the resulting string replacing their respective specifiers TBD: check specification

Log output contains module number, severity level, application name and timestamp. They saved on flash in a ring buffer - older messages will be overridden.

Log filters - currently hardcoded, platform does not provide to configure filters, TBD: describe default filters and how to configure them

View logs - only python scripts are available, SDK support TBD: describe log dump, BT in real time, buffering nature, synchronization between modules

PawnLibs/log/LOG_a

Summary

Print an assert log message and stop application execution.

Synopsis

PawnLibs/log
PAWN
1native LOG_a(const format[], {Float,Fixed,_}:...);
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Inputs

  • format - format string
  • ... - variable values to insert in the resulting string

PawnLibs/log/LOG_d

Summary

Print a debug log message.

Synopsis

PawnLibs/log
PAWN
1native LOG_d(const format[], {Float,Fixed,_}:...);
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Inputs

  • format - format string
  • ... - variable values to insert in the resulting string

PawnLibs/log/LOG_e

Summary

Print an error log message.

Synopsis

PawnLibs/log
PAWN
1native LOG_e(const format[], {Float,Fixed,_}:...);
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Inputs

  • format - format string
  • ... - variable values to insert in the resulting string

PawnLibs/log/LOG_i

Summary

Print an information log message.

Synopsis

PawnLibs/log
PAWN
1native LOG_i(const format[], {Float,Fixed,_}:...);
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Inputs

  • format - format string
  • ... - variable values to insert in the resulting string

PawnLibs/log/LOG_v

Summary

Print a verbose log message.

Synopsis

PawnLibs/log
PAWN
1native LOG_v(const format[], {Float,Fixed,_}:...);
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Inputs

  • format - format string
  • ... - variable values to insert in the resulting string

PawnLibs/log/LOG_w

Summary

Print a warning log message.

Synopsis

PawnLibs/log
PAWN
1native LOG_w(const format[], {Float,Fixed,_}:...);
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Inputs

  • format - format string
  • ... - variable values to insert in the resulting string

Jump Grid

On This Page

PawnLibs/log/LOG\ aPawnLibs/log/LOG\ dPawnLibs/log/LOG\ ePawnLibs/log/LOG\ iPawnLibs/log/LOG\ vPawnLibs/log/LOG\ w
Context Rail

Related nodes

PawnLibs/wowcore/SELF\ ID
API / SDK 6.2 / Pawn / API Reference
PawnLibs/graphics
API / SDK 6.2 / Pawn / API Reference
PawnLibs/sound/SND\ cacheSounds
API / SDK 6.2 / Pawn / API Reference
PawnLibs/topology
API / SDK 6.2 / Pawn / API Reference
Previous Node
PawnLibs/physics/PHYSICS\ CIRCLE\ DATA
API / SDK 6.2 / Pawn / API Reference
Next Node
PawnLibs/scramble
API / SDK 6.2 / Pawn / API Reference