@creejs/commons-logging
Version:
Common Utils About Logging
26 lines (25 loc) • 788 B
TypeScript
/**
* A Simple Implementation of the Logger interface that logs to the console.
*/
export default class ConsoleLogger extends Logger {
/**
* Creates a ConsoleLogger instance.
* @constructor
* @param {string} name - The logger name.
* @param {*} nativeLogger - The native console object to use for logging.
* @param {number} level - The initial log level.
*/
constructor(name: string, nativeLogger: any, level: number);
/**
* @type {{error:function, warn:function, debug:function, log:function, info:function, trace:function}}
*/
console: {
error: Function;
warn: Function;
debug: Function;
log: Function;
info: Function;
trace: Function;
};
}
import Logger from '../logger.js';