pull/1/head
Esther 2020-06-22 22:53:27 +01:00
parent 76190ef7d8
commit 164a7246bd
No known key found for this signature in database
GPG Key ID: 162A307C5EBD40EA
1 changed files with 2 additions and 1 deletions

View File

@ -1,10 +1,11 @@
var winston = require('winston');
var appRoot = require('app-root-path');
var logger = new winston.createLogger({
transports: [
new winston.transports.File({
level: 'info',
filename: './logs/all-logs.log',
filename: `${appRoot}/logs/app.log`,
handleExceptions: true,
json: true,
maxsize: 5242880, //5MB