Options
All
  • Public
  • Public/Protected
  • All
Menu

Class that contains all the log data created by the LogService.

Hierarchy

  • LogEntry

Index

Methods

addArgs

  • addArgs(arg: any): void
  • Add an individual argument to the log entry's args array.

    Parameters

    • arg: any

      The argument to add to the log entry's args array.

    Returns void

asConsoleString

  • asConsoleString(): string
  • Transforms a log entry into an string that is formatted specifically for the console. Makes use of the
    chalkColor associated with the log level.

    Returns string

    The log entry in a colorized string format.

getArgs

  • getArgs(): any[]

getDate

  • getDate(): Date

getLogLevel

setArgs

  • setArgs(args: any[]): void
  • Setter method for the log entry's args.

    throws

    {Error} An error is thrown by the LogEntry if a value has already been set for the value.

    Parameters

    • args: any[]

      The arguments to set to the log entry.

    Returns void

toString

  • toString(): string

Constructors

constructor

Generated using TypeDoc