Options
All
  • Public
  • Public/Protected
  • All
Menu

ConsoleLogAppender logs data to console.

Hierarchy

  • ConsoleLogAppender

Implements

Index

Constructors

Properties

Methods

Constructors

  • Creates ConsoleLogAppender object with default/input formatter

    example
    const consoleAppender = new ConsoleLogAppender()
    

    Parameters

    • formatter: LogFormatter = ...

      Specifies default/input formatter.

    Returns ConsoleLogAppender

Properties

formatter: LogFormatter = ...

Methods

  • Appends input log entry data to console.

    example
    // Prints stringified object to console
    const logEntry: LogEntry;
    append(logEntry);

    Parameters

    • entry: LogEntry

      Specifies data and log level to be logged.

    Returns void

  • clear(): void
  • Clears the console.

    example
    clear()
    

    Returns void

  • getConsole(): Console
  • Gets the console object.

    example
    getConsole()
    

    Returns Console

    Console object.

Generated using TypeDoc