Interface

Gjsgjs/domConsole

interface Console {
    assert(condition: boolean, ...data: any[]): void;
    clear(): void;
    count(label: string): void;
    countReset(label: string): void;
    debug(...data: any[]): void;
    dir(item: object, options?: never): void;
    dirxml(...data: any[]): void;
    error(...data: any[]): void;
    group(...data: any[]): void;
    groupCollapsed(...data: any[]): void;
    groupEnd(): void;
    info(...data: any[]): void;
    log(...data: any[]): void;
    profile(_label: string): void;
    profileEnd(_label: string): void;
    table(tabularData: any, _properties: never): void;
    time(label: string): void;
    timeEnd(label: string): void;
    timeLog(label: string, ...data: any[]): void;
    timeStamp(_label: string): void;
    trace(...data: any[]): void;
    warn(...data: any[]): void;
}
Index

Methods

  • Logs a critical message if the condition is not truthy. () for additional information.

    Parameters

    • condition: boolean

      a boolean condition which, if false, causes the log to print

    • ...data: any[]

      formatting substitutions, if applicable

    Returns void

  • Resets grouping and clears the terminal on systems supporting ANSI terminal control sequences.

    In file-based stdout or systems which do not support clearing, console.clear() has no visual effect.

    Returns void

  • Logs how many times console.count(label) has been called with a given label. () for resetting a count.

    Parameters

    • label: string

      unique identifier for this action

    Returns void

  • Parameters

    • label: string

      the unique label to reset the count for

    Returns void

  • Parameters

    • item: object

      an item to format generically

    • Optionaloptions: never

      any additional options for the formatter. Unused in our implementation.

    Returns void

  • Parameters

    • ...data: any[]

      formatting substitutions, if applicable

    Returns void

  • Parameters

    • ...data: any[]

      formatting substitutions, if applicable

    Returns void

  • Alias for console.group()

    Parameters

    • ...data: any[]

      formatting substitutions, if applicable

    Returns void

  • Logs a message with severity equal to GLib.LogLevelFlags.INFO.

    Parameters

    • ...data: any[]

      formatting substitutions, if applicable

    Returns void

  • Parameters

    • Deprecated_label: string

      unique identifier for this action, pass to console.profileEnd to complete

    Returns void

    Not implemented in GJS

  • Parameters

    • Deprecated_label: string

      unique identifier for this action

    Returns void

    Not implemented in GJS

  • Parameters

    • tabularData: any
    • _properties: never

    Returns void

  • Parameters

    • label: string

      unique identifier for this action, pass to console.timeEnd() to complete

    Returns void

  • Logs the time since the last call to console.time(label) and completes the action. Call console.time(label) again to re-measure.

    Parameters

    • label: string

      unique identifier for this action

    Returns void

  • Logs the time since the last call to console.time(label) where label is the same.

    Parameters

    • label: string

      unique identifier for this action, pass to console.timeEnd() to complete

    • ...data: any[]

      string substitutions, if applicable

    Returns void

  • Parameters

    • Deprecated_label: string

      unique identifier for this action

    Returns void

    Not implemented in GJS

  • Parameters

    • ...data: any[]

      formatting substitutions, if applicable

    Returns void

  • Parameters

    • ...data: any[]

      formatting substitutions, if applicable

    Returns void