Added helper logger

This commit is contained in:
Leon Meier 2023-06-27 20:54:47 +02:00
parent db0e8c2047
commit 137da0e31e

View File

@ -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.