SongGuess
    Preparing search index...
    Index
    • Logs a debug message to storage and console.

      Parameters

      • message: any

      Returns void

    • Logs an error message to storage and console.

      Parameters

      • message: any

      Returns void

    • Formats an object into a string representation for logging.

      Parameters

      • obj: any

      Returns string

    • Logs an informational message to storage and console.

      Parameters

      • message: any

      Returns void

    • Sends the log message to all connected admins and logs it to console which the worker runtime will store.

      Parameters

      • message: string

        The message to log. Debug messages will not be logged to console (and therefore not be stored).

      • level: "error" | "info" | "warn" | "debug"

        The log level (info, warn, error, debug).

      Returns void

    • Truncates a message if it exceeds the maximum length.

      Parameters

      • message: string

        The message to truncate.

      • maxLength: number = 1500

        Maximum allowed length (default 1500).

      Returns string

    • Logs a warning message to storage and console.

      Parameters

      • message: any

      Returns void