Added helper logger
This commit is contained in:
parent
db0e8c2047
commit
137da0e31e
@ -20,14 +20,15 @@ const logger_settings = {
|
|||||||
logLevel: 'info',
|
logLevel: 'info',
|
||||||
scope: 'Core',
|
scope: 'Core',
|
||||||
stream: process.stdout,
|
stream: process.stdout,
|
||||||
displayFilename: true
|
displayFilename: false
|
||||||
};
|
};
|
||||||
|
|
||||||
const coreLogger = new Signale(logger_settings);
|
const coreLogger = new Signale(logger_settings);
|
||||||
export const log = {
|
export const log = {
|
||||||
core: coreLogger,
|
core: coreLogger,
|
||||||
db: coreLogger.scope('DB'),
|
db: coreLogger.scope('DB'),
|
||||||
web: coreLogger.scope('WEB')
|
web: coreLogger.scope('WEB'),
|
||||||
|
helper: coreLogger.scope('HELPER')
|
||||||
};
|
};
|
||||||
|
|
||||||
// Create a new config instance.
|
// Create a new config instance.
|
||||||
|
Loading…
Reference in New Issue
Block a user