Unofficial community resource. Not affiliated with, maintained by, or endorsed by WOWCube / Cubios Inc. Cubios Inc. does not guarantee the accuracy or completeness of this content. Official WOWCube Development Kit

WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelogDeveloper Toolkit
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.

Unofficial community resource. Not affiliated with, maintained by, or endorsed by WOWCube / Cubios Inc. Cubios Inc. does not guarantee the accuracy or completeness of this content. For official documentation and the SDK, see the WOWCube Development Kit.

Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. API
  4. log
Mission NodeSDK 6.1PawnAPI Reference

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.1 / Pawn / API Reference
VersionSDK 6.3SDK 6.2SDK 6.1
Report issue

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:

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

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

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

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

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

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

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

Trust & provenance

Document status

Source
Logging · installed SDK headers
Classification
API reference
Verification
Community-maintained · verify against installed SDK

Catalog updated Oct 20, 2018

Structured index

Symbols on this page

Names and signatures are extracted from this SDK-derived page. Signature hashes detect accidental changes.

logMember
LOG_aNativenative LOG_a(const format[], {Float,Fixed,_}:...);
LOG_dNativenative LOG_d(const format[], {Float,Fixed,_}:...);
LOG_eNativenative LOG_e(const format[], {Float,Fixed,_}:...);
LOG_iNativenative LOG_i(const format[], {Float,Fixed,_}:...);
LOG_vNativenative LOG_v(const format[], {Float,Fixed,_}:...);
LOG_wNativenative LOG_w(const format[], {Float,Fixed,_}:...);

Used in SDK snippets

LOG_i→WorkingWithEmulator.cppLOG_i→main.pwnLOG_i→WorkingWithEmulator.cppLOG_i→main.pwnLOG_i→WorkingWithEmulator.cpp
Jump Grid

On This Page

PawnLibs/logPawnLibs/log/LOG\ aPawnLibs/log/LOG\ dPawnLibs/log/LOG\ ePawnLibs/log/LOG\ iPawnLibs/log/LOG\ vPawnLibs/log/LOG\ w
Back to top ↑
Context Rail

Related nodes

SELF\ ID
API / SDK 6.1 / Pawn / API Reference
graphics
API / SDK 6.1 / Pawn / API Reference
SND\ cacheSounds
API / SDK 6.1 / Pawn / API Reference
topology
API / SDK 6.1 / Pawn / API Reference
Previous Node
Physics helper library
API / SDK 6.1 / Pawn / API Reference
Next Node
scramble
API / SDK 6.1 / Pawn / API Reference