@bitrix24/b24jssdk
Version:
Bitrix24 REST API JavaScript SDK
72 lines (68 loc) • 1.62 kB
JavaScript
/**
* @package @bitrix24/b24jssdk
* @version 2.0.0
* @copyright (c) 2026 Bitrix24
* @license MIT
* @see https://github.com/bitrix24/b24jssdk
* @see https://bitrix24.github.io/b24jssdk/
*/
;
const logger = require('../types/logger.cjs');
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
class AbstractLogger {
static {
__name(this, "AbstractLogger");
}
/**
* @inheritDoc
*/
async debug(message, context) {
return this.log(logger.LogLevel.DEBUG, message, context);
}
/**
* @inheritDoc
*/
async info(message, context) {
return this.log(logger.LogLevel.INFO, message, context);
}
/**
* @inheritDoc
*/
async notice(message, context) {
return this.log(logger.LogLevel.NOTICE, message, context);
}
/**
* @inheritDoc
*/
async warning(message, context) {
return this.log(logger.LogLevel.WARNING, message, context);
}
/**
* @inheritDoc
*/
async error(message, context) {
return this.log(logger.LogLevel.ERROR, message, context);
}
/**
* @inheritDoc
*/
async critical(message, context) {
return this.log(logger.LogLevel.CRITICAL, message, context);
}
/**
* @inheritDoc
*/
async alert(message, context) {
return this.log(logger.LogLevel.ALERT, message, context);
}
/**
* @inheritDoc
*/
async emergency(message, context) {
return this.log(logger.LogLevel.EMERGENCY, message, context);
}
// endregion ////
}
exports.AbstractLogger = AbstractLogger;
//# sourceMappingURL=abstract-logger.cjs.map