Class

LogService

LogService()

Service class for logging in the bot-sdk
Constructor

# new LogService()

View Source logging/LogService.ts, line 60

Classes

LogService

Members

# static level

The level at which the LogService is running.

View Source logging/LogService.ts, line 69

Methods

# static debug(module, messageOrObject)

Logs to the DEBUG channel
Parameters:
Name Type Description
module string The module being logged
messageOrObject Array.<any> The data to log

View Source logging/LogService.ts, line 240

# static error(module, messageOrObject)

Logs to the ERROR channel
Parameters:
Name Type Description
module string The module being logged
messageOrObject Array.<any> The data to log

View Source logging/LogService.ts, line 248

# static info(module, messageOrObject)

Logs to the INFO channel
Parameters:
Name Type Description
module string The module being logged
messageOrObject Array.<any> The data to log

View Source logging/LogService.ts, line 256

# static level() → {LogLevel}

The level at which the LogService is running.

View Source logging/LogService.ts, line 203

LogLevel

# static muteModule(name)

Mutes a module from the logger.
Parameters:
Name Type Description
name string The module name to mute.

View Source logging/LogService.ts, line 224

# static setLevel(level)

Sets the log level for this logger. Defaults to DEBUG.
Parameters:
Name Type Description
level LogLevel the new log level

View Source logging/LogService.ts, line 210

# static setLogger(logger)

Sets a new logger for the Log Service
Parameters:
Name Type Description
logger ILogger the new logger

View Source logging/LogService.ts, line 217

# static trace(module, messageOrObject)

Logs to the TRACE channel
Parameters:
Name Type Description
module string The module being logged
messageOrObject Array.<any> The data to log

View Source logging/LogService.ts, line 232

# static warn(module, messageOrObject)

Logs to the WARN channel
Parameters:
Name Type Description
module string The module being logged
messageOrObject Array.<any> The data to log

View Source logging/LogService.ts, line 264