...
 
Commits (2)
......@@ -18,7 +18,7 @@
"prod:node": "tsc"
},
"name": "log74",
"version": "1.0.1",
"version": "1.0.2",
"description": "Mini logging library for Node.js and the web.",
"main": "dist/index.node.js",
"repository": "https://gitlab.insrt.uk/insert/log74.git",
......
import chalk from 'chalk';
import { Result } from './common/result';
import Logger from './common/logger';
import LoggerClass from './common/logger';
/**
* Write an error message
......@@ -51,10 +51,12 @@ export function Log(string: string, cb?: Result) {
/**
* Logger class with custom message handler
*/
export default class WebLogger extends Logger {
export class Logger extends LoggerClass {
error(string: string) {Error(string, this.l)};
warn(string: string) {Warn(string, this.l)};
info(string: string) {Info(string, this.l)};
success(string: string) {Success(string, this.l)};
log(string: string) {Log(string, this.l)};
};
\ No newline at end of file
};
export default Logger;
\ No newline at end of file