mirror of
https://github.com/aurora-dot/pastel.codes.git
synced 2024-11-22 08:12:19 +00:00
Fixed???
This commit is contained in:
parent
76190ef7d8
commit
164a7246bd
@ -1,10 +1,11 @@
|
|||||||
var winston = require('winston');
|
var winston = require('winston');
|
||||||
|
var appRoot = require('app-root-path');
|
||||||
|
|
||||||
var logger = new winston.createLogger({
|
var logger = new winston.createLogger({
|
||||||
transports: [
|
transports: [
|
||||||
new winston.transports.File({
|
new winston.transports.File({
|
||||||
level: 'info',
|
level: 'info',
|
||||||
filename: './logs/all-logs.log',
|
filename: `${appRoot}/logs/app.log`,
|
||||||
handleExceptions: true,
|
handleExceptions: true,
|
||||||
json: true,
|
json: true,
|
||||||
maxsize: 5242880, //5MB
|
maxsize: 5242880, //5MB
|
||||||
|
Loading…
Reference in New Issue
Block a user