

const require_Logger = require('./Logger.js');
const require_BaseLogger = require('./BaseLogger.js');
const require_replaceError = require('./replaceError.js');

//#region src/logger/ConsoleLogger.ts
var ConsoleLogger = class extends require_BaseLogger.BaseLogger {
	constructor(..._args) {
		super(..._args);
		this.consoleLogMap = {
			[require_Logger.LogLevel.test]: "log",
			[require_Logger.LogLevel.trace]: "log",
			[require_Logger.LogLevel.debug]: "debug",
			[require_Logger.LogLevel.info]: "info",
			[require_Logger.LogLevel.warn]: "warn",
			[require_Logger.LogLevel.error]: "error",
			[require_Logger.LogLevel.fatal]: "error"
		};
	}
	log(level, message, data) {
		const consoleLevel = this.consoleLogMap[level];
		const prefix = require_Logger.LogLevel[level].toUpperCase();
		if (!this.isEnabled(level)) return;
		if (data) console[consoleLevel](`${prefix}: ${message}`, JSON.stringify(data, require_replaceError.replaceError, 2));
		else console[consoleLevel](`${prefix}: ${message}`);
	}
	test(message, data) {
		this.log(require_Logger.LogLevel.test, message, data);
	}
	trace(message, data) {
		this.log(require_Logger.LogLevel.trace, message, data);
	}
	debug(message, data) {
		this.log(require_Logger.LogLevel.debug, message, data);
	}
	info(message, data) {
		this.log(require_Logger.LogLevel.info, message, data);
	}
	warn(message, data) {
		this.log(require_Logger.LogLevel.warn, message, data);
	}
	error(message, data) {
		this.log(require_Logger.LogLevel.error, message, data);
	}
	fatal(message, data) {
		this.log(require_Logger.LogLevel.fatal, message, data);
	}
};

//#endregion
exports.ConsoleLogger = ConsoleLogger;