@vector-im/matrix-bot-sdk
Version:
TypeScript/JavaScript SDK for Matrix bots and appservices
41 lines (36 loc) • 1.14 kB
text/typescript
/**
* Represents a logger
* @category Logging
*/
export interface ILogger {
/**
* Logs to the INFO channel
* @param {string} module The module being logged
* @param {any[]} messageOrObject The data to log
*/
info(module: string, ...messageOrObject: any[]);
/**
* Logs to the WARN channel
* @param {string} module The module being logged
* @param {any[]} messageOrObject The data to log
*/
warn(module: string, ...messageOrObject: any[]);
/**
* Logs to the ERROR channel
* @param {string} module The module being logged
* @param {any[]} messageOrObject The data to log
*/
error(module: string, ...messageOrObject: any[]);
/**
* Logs to the DEBUG channel
* @param {string} module The module being logged
* @param {any[]} messageOrObject The data to log
*/
debug(module: string, ...messageOrObject: any[]);
/**
* Logs to the TRACE channel
* @param {string} module The module being logged
* @param {any[]} messageOrObject The data to log
*/
trace(module: string, ...messageOrObject: any[]);
}