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 | 31 |
Tags
- 코어 자바스크립트
- docker
- XMLHttpRequest 예제
- Raspberry Pi docker install
- cloudflare certbot
- cloudflare DNS
- XMLHttpRequest with promise
- docker image 배포
- 코어자바스크립트
- cloudflare Origin Server CA
- nodejs myslq2
- cloudflare ssl
- 코어자바스크립트 정리
- Dockerfile example
- JavaScript
- Raspberry Pi docker-compose install
- nodejs mariaDB
- docker compose
- XMLHttpRequest example
- 로스트아크 API
- docker image deploy
- 로스트아크 open API
- cloudflare Origin Server
- docker compose example
- dockerignore setting
- dockerignore example
- nodejs DB
- cloudflare
- Dockerfile setting
- docker compose setting
Archives
- Today
- Total
목록nodejs logging (1)
오늘
npm을 사용하여 winston 설치 npm install winston winston-daily-rotate-file 로그 설정 파일 logDir : 절대경로 or 상대경로 설정 가능 아래 설정에 콘솔로그를 제외하고 2개 로그파일이 정의되어 있음. info 이상의 로그 : WorkingDir/logs 디렉토리에 저장 error 이상의 로그 : WorkingDir/logs/error 디렉토리에 저장 ++ WorkingDir/logs 디렉토리에 저장되는 로그파일에도 물론 error 로그 포함됨. const winston = require('winston'); const winstonDaily = require('winston-daily-rotate-file'); const { combine, timesta..
nodejs
2023. 3. 9. 00:25