Docs (4.0.0)
class LogWriter method

debug

Writes a log message with severity ‘debug’ (1).

debug(message: unknown): void

Notes

  • The specified message may be a string, a LazyString (the result of strf()), an Error instance, or any other value that can be converted to a string.
  • For LazyString and AppException messages, placeholder values are included in the message data so that they can be stored separately in a structured log.

Example

// Write a formatted log message
app.log.debug(strf("Logged in as %[name]", userData));

Related

  • class LogWriterA class that handles log messages, part of the global application context.