Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

0x00 - Log

Log a message with an associated target and log level, usually to help with debugging.

Readiness

Becomes ready once logging has completed (stopping the process after ready wouldn't result in a partially-formed log message).

Command: Log

Fields

  • [_; _]
    • level: int Log level
    1. Fatal
    2. Error
    3. Warn
    4. Info
    5. Debug
    6. Trace
    7. Stdout
    8. Stderr
    • log: opt[_] Log target and message
      • target: Text Target name
      • message: Text Message to print

Traps

  1. If message is not valid UTF-8, or contains a NUL byte
  2. If target is not valid UTF-8, or contains a NUL byte
  3. If address at message.addr + message.size - 1 has no page
  4. If address at target.addr + target.size - 1 has no page