Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createLogger(params) {
const level = __DEV__ ? ( // eslint-disable-line no-nested-ternary
__SERVER__ ? 'warn' : 'trace'
) : 'error';
return logger.createLogger({
name: this.name || 'app',
src: __DEV__,
level,
...get(this, 'config.log', {}),
...params,
});
}
createLogger(params) {
return logger.createLogger({
name: this.name || 'app',
src: __DEV__,
level: 'trace',
...get(this, 'config.log', {}),
...params,
});
}