Logger
Index
Constructors
constructor
Returns Logger
Properties
publicdefaultLevel
Gets or sets the default logging level. Excalibur will only log messages if equal to or above this level. Default: LogLevel.Info
Methods
publicaddAppender
publicclearAppenders
Clears all appenders from the logger
Returns void
publicdebug
Writes a log message at the LogLevel.Debug level
Parameters
rest...args: any[]
Accepts any number of arguments
Returns void
publicdebugOnce
Writes a log message once at the LogLevel.Fatal level, if it sees the same args again it wont log
Parameters
rest...args: any[]
Accepts any number of arguments
Returns void
publicerror
Writes a log message at the LogLevel.Error level
Parameters
rest...args: any[]
Accepts any number of arguments
Returns void
publicerrorOnce
Writes a log message once at the LogLevel.Error level, if it sees the same args again it won't log
Parameters
rest...args: any[]
Accepts any number of arguments
Returns void
publicfatal
Writes a log message at the LogLevel.Fatal level
Parameters
rest...args: any[]
Accepts any number of arguments
Returns void
publicfatalOnce
Writes a log message once at the LogLevel.Fatal level, if it sees the same args again it won't log
Parameters
rest...args: any[]
Accepts any number of arguments
Returns void
publicinfo
Writes a log message at the LogLevel.Info level
Parameters
rest...args: any[]
Accepts any number of arguments
Returns void
publicinfoOnce
Writes a log message once at the LogLevel.Info level, if it sees the same args again it wont log
Parameters
rest...args: any[]
Accepts any number of arguments
Returns void
publicwarn
Writes a log message at the LogLevel.Warn level
Parameters
rest...args: any[]
Accepts any number of arguments
Returns void
publicwarnOnce
Writes a log message once at the LogLevel.Warn level, if it sees the same args again it won't log
Parameters
rest...args: any[]
Accepts any number of arguments
Returns void
publicstaticgetInstance
Gets the current static instance of Logger
Returns Logger
Static singleton that represents the logging facility for Excalibur. Excalibur comes built-in with a ConsoleAppender and ScreenAppender. Derive from Appender to create your own logging appenders.