Class Logger
Properties
Static ReadonlyAll Log Level
AllLogLevel: 7
All logs
StaticError
Error: (message: string | any[], limit?: number) => void = ...
Write an error message to the console
Static ReadonlyError Log Level
ErrorLogLevel: 4
Only error logs
Static Ignorenamingerrors Count
errorsCount: number = 0
Gets a value indicating the number of loading errors
StaticLog
Log: (message: string | any[], limit?: number) => void = ...
Log a message to the console
StaticMessage Limit Reached
MessageLimitReached: string = "Too many %TYPE%s (%LIMIT%), no more %TYPE%s will be reported for this message."
Message to display when a message has been logged too many times
Static ReadonlyMessage Log Level
MessageLogLevel: 1
Only message logs
Static ReadonlyNone Log Level
NoneLogLevel: 0
No log
StaticOn New Cache Entry
OnNewCacheEntry: (entry: string) => void
Callback called when a new log is added
StaticWarn
Warn: (message: string | any[], limit?: number) => void = ...
Write a warning message to the console
Static ReadonlyWarning Log Level
WarningLogLevel: 2
Only warning logs
Accessors
StaticLog Cache
-
get LogCache(): string
Gets current log cache (list of logs)
Returns string
StaticLog Levels
-
set LogLevels(level: number): void
Sets the current log level. This property is a bit field, allowing you to combine different levels (MessageLogLevel / WarningLogLevel / ErrorLogLevel). Use NoneLogLevel to disable logging and AllLogLevel for a quick way to enable all levels.
Parameters
- level: number
Returns void
Logger used throughout the application to allow configuration of the log level required for the messages.