Logger

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

Hierarchy

  • Logger

Index

Properties

Static AllLogLevel

Find examples in Playground
AllLogLevel: number

All logs

Static Error

Find examples in Playground
Error: function

Write an error message to the console

Type declaration

    • (message: string): void
    • Parameters

      • message: string

      Returns void

Static ErrorLogLevel

Find examples in Playground
ErrorLogLevel: number

Only error logs

Static Log

Find examples in Playground
Log: function

Log a message to the console

Type declaration

    • (message: string): void
    • Parameters

      • message: string

      Returns void

Static LogCache

Find examples in Playground
LogCache: string

Gets current log cache (list of logs)

Static LogLevels

Find examples in Playground
LogLevels: number

Sets the current log level (MessageLogLevel / WarningLogLevel / ErrorLogLevel)

Static MessageLogLevel

Find examples in Playground
MessageLogLevel: number

Only message logs

Static NoneLogLevel

Find examples in Playground
NoneLogLevel: number

No log

Static OnNewCacheEntry

Find examples in Playground
OnNewCacheEntry: function

Callback called when a new log is added

Type declaration

    • (entry: string): void
    • Parameters

      • entry: string

      Returns void

Static Warn

Find examples in Playground
Warn: function

Write a warning message to the console

Type declaration

    • (message: string): void
    • Parameters

      • message: string

      Returns void

Static WarningLogLevel

Find examples in Playground
WarningLogLevel: number

Only warning logs

Static errorsCount

Find examples in Playground
errorsCount: number

Gets a value indicating the number of loading errors

ignorenaming

Methods

Static ClearLogCache

Find examples in Playground
  • ClearLogCache(): void
  • Clears the log cache

    Returns void

Generated using TypeDoc