Class Logger
Hierarchy
- Logger
Index
Constructors
constructor
Returns Logger
Properties
Static Readonly All Log LevelSearch playground for AllLogLevel
All logs
Static ErrorSearch playground for Error
Type declaration
Write an error message to the console
Parameters
message: string
Optional limit: number
Returns void
Static Readonly Error Log LevelSearch playground for ErrorLogLevel
Only error logs
Static LogSearch playground for Log
Type declaration
Log a message to the console
Parameters
message: string
Optional limit: number
Returns void
Static Message Limit ReachedSearch playground for MessageLimitReached
Message to display when a message has been logged too many times
Static Readonly Message Log LevelSearch playground for MessageLogLevel
Only message logs
Static Readonly None Log LevelSearch playground for NoneLogLevel
No log
Static On New Cache EntrySearch playground for OnNewCacheEntry
Type declaration
Callback called when a new log is added
Parameters
entry: string
Returns void
Static WarnSearch playground for Warn
Type declaration
Write a warning message to the console
Parameters
message: string
Optional limit: number
Returns void
Static Readonly Warning Log LevelSearch playground for WarningLogLevel
Only warning logs
Static errors CountSearch playground for errorsCount
Gets a value indicating the number of loading errors
Accessors
Static Log Cache
Gets current log cache (list of logs)
Returns string
Static Log Levels
Sets the current log level (MessageLogLevel / WarningLogLevel / ErrorLogLevel)
Parameters
level: number
Returns void
Methods
Static Clear Log CacheSearch playground for ClearLogCache
Clears the log cache
Returns void
Logger used throughout the application to allow configuration of the log level required for the messages.