반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- ejs
- SSMS
- footer
- Compare
- checkbox
- C#
- 한번에 체크
- input
- 깃허브
- sql 서버
- 초기설정
- json
- nodejs
- jQuery
- github
- CheckAllChildNodes
- Git
- SQL Server
- 비교
- 윈폼
- 로깅
- 하위노드
- body
- WinForm
- header
- ChatGPT
- html 코드
- MSSQL
- treeview
- 깜빡임
Archives
- Today
- Total
반응형
목록로거 (1)
반응형
타닥타닥 민타쿠

로깅을 위해 Nodejs 에서 가장 많이 사용되는 winston 모듈을 적용 및 테스트하였다. winston 모듈로 로깅하면 로그 레벨별로 색상을 구분하여 출력할 수 있으며, 레벨별, 날짜별로 저장하고 보관 기간 등 원하는 설정을 할 수가 있다. winston 모듈 적용 방법 npm install winston winston-daily-rotate-file 프로젝트 경로에서 cmd로 winston 과 winston-daily-rotate-file 모듈 설치 명령어를 입력한다. winston.js 작성 const winston = require('winston'); const winstonDaily = require('winston-daily-rotate-file'); const logDir = 'logs..
개발/Nodejs
2021. 7. 31. 00:02
반응형