Skip to content

Commit

Permalink
사용하지 않는 라우터 제거, 일부 설정 옮김
Browse files Browse the repository at this point in the history
  • Loading branch information
jiunkoo committed Feb 28, 2020
1 parent 4f4c7ab commit 992a27c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 33 deletions.
5 changes: 3 additions & 2 deletions config/winston.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { createLogger, format, transports } = require('winston');
const moment = require('moment');
require('moment-timezone');
require('dotenv').config(); //.env 설정
const fs = require('fs');

const env = process.env.NODE_ENV || "development";
Expand Down Expand Up @@ -41,8 +42,8 @@ const transport_file = new transports.File({
appendTimestamp({ tz: 'Asia/Seoul' }),
myFormat
),
maxsize: 10485760, // 단위는 바이트(10MB)
maxFiles: "1d" // 자동으로 분리되어 생성되는 파일 개수 or 삭제일(하루 지나면 삭제)
maxsize: process.env.WINSTON_MAXSIZE, // 단위는 바이트
maxFiles: process.env.WINSTON_MAXFILES // 자동으로 분리되어 생성되는 파일 개수 or 삭제일
});

// 콘솔 출력 옵션 설정
Expand Down
31 changes: 0 additions & 31 deletions routes/users.js

This file was deleted.

0 comments on commit 992a27c

Please sign in to comment.