clear-af.js
    Preparing search index...

    Function prettyWarn

    • Function

      Show a pretty warn log message with optional date information

      Parameters

      • warn: string

        Warning message to display

      • time: boolean = false

        Include or not a timestamp

      Returns void

      prettyWarn("Deprecated function used");
      // Output: ⚠ - Deprecated function used (in orange)

      prettyWarn("Low memory", true);
      // Output: ⚠ [30/03/2026 10:30:45] - Low memory (in orange with timestamp)