Class Logger
Hierarchy
- Logger
Index
Properties
Accessors
Methods
Properties
Static Readonly All Log LevelSearch playground for AllLogLevel
All logs
Static ErrorSearch playground for Error
Write an error message to the console
Type declaration
-
-
Parameters
-
message: string
-
Optional limit: number
Returns void
-
-
Static Readonly Error Log LevelSearch playground for ErrorLogLevel
Only error logs
Static LogSearch playground for Log
Log a message to the console
Type declaration
-
-
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
Callback called when a new log is added
Type declaration
-
-
Parameters
-
entry: string
Returns void
-
-
Static WarnSearch playground for Warn
Write a warning message to the console
Type declaration
-
-
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 any
-
Methods
Static Clear Log CacheSearch playground for ClearLogCache
-
Clears the log cache
Returns void
Logger used througouht the application to allow configuration of the log level required for the messages.