This Package is use for debug any Javascript Application.
const { Logger } = require("app-debug-logger");
import { Logger } from 'app-debug-logger'
const config = {
id : "custom-id",
isEventLog : true,
consoleLog : ['info', 'error', 'warn', 'success', 'debug'],
isProduction : false,
}
Key | Type | Default Value |
---|---|---|
id | string |
app-debug-logger |
isEventLog | boolean |
false |
consoleLog | array |
['info', 'error', 'warn', 'success', 'debug'] |
isProduction | boolean |
false |
const LOG = new Logger(config);
Method | Parameters |
---|---|
debug | moduleName, log |
info | moduleName, log |
warn | moduleName, log |
sucess | moduleName, log |
error | moduleName, log |
on | loggerId, callback |