Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Logger

Logger used througouht the application to allow configuration of the log level required for the messages.

Hierarchy

  • Logger

Index

Properties

Static Readonly AllLogLevelSearch playground for AllLogLevel

AllLogLevel: number

All logs

Static ErrorSearch playground for Error

Error: (message: string) => void

Write an error message to the console

Type declaration

    • (message: string): void
    • Parameters

      • message: string

      Returns void

Static Readonly ErrorLogLevelSearch playground for ErrorLogLevel

ErrorLogLevel: number

Only error logs

Static LogSearch playground for Log

Log: (message: string) => void

Log a message to the console

Type declaration

    • (message: string): void
    • Parameters

      • message: string

      Returns void

Static Readonly MessageLogLevelSearch playground for MessageLogLevel

MessageLogLevel: number

Only message logs

Static Readonly NoneLogLevelSearch playground for NoneLogLevel

NoneLogLevel: number

No log

Static OnNewCacheEntrySearch playground for OnNewCacheEntry

OnNewCacheEntry: (entry: string) => void

Callback called when a new log is added

Type declaration

    • (entry: string): void
    • Parameters

      • entry: string

      Returns void

Static WarnSearch playground for Warn

Warn: (message: string) => void

Write a warning message to the console

Type declaration

    • (message: string): void
    • Parameters

      • message: string

      Returns void

Static Readonly WarningLogLevelSearch playground for WarningLogLevel

WarningLogLevel: number

Only warning logs

Static errorsCountSearch playground for errorsCount

errorsCount: number

Gets a value indicating the number of loading errors

ignorenaming

Accessors

Static LogCache

  • get LogCache(): string
  • Gets current log cache (list of logs)

    Returns string

Static LogLevels

  • set LogLevels(level: number): any
  • Sets the current log level (MessageLogLevel / WarningLogLevel / ErrorLogLevel)

    Parameters

    • level: number

    Returns any

Methods

Static ClearLogCacheSearch playground for ClearLogCache

  • ClearLogCache(): void
  • Clears the log cache

    Returns void

Legend

  • Property
  • Method
  • Constructor
  • Property
  • Static property
  • Static method