• Log a compatibility warning which is filtered based on the client's defined compatibility settings.

    Parameters

    • message: string

      The original warning or error message

    • Optional options: {
          mode: number;
          since: string | number;
          until: string | number;
          details: string;
          stack: boolean;
          once: boolean;
      } = {}

      Additional options which customize logging

      • mode: number

        A logging level in COMPATIBILITY_MODES which overrides the configured default

      • since: string | number

        A version identifier since which a change was made

      • until: string | number

        A version identifier until which a change remains supported

      • details: string

        Additional details to append to the logged message

      • stack: boolean

        Include the message stack trace

      • once: boolean

        Log this the message only once?

    Returns void

    Throws

    An Error if the mode is ERROR