Download api/utils/logger.js from Zhitomir/chat: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/spaces/Zhitomir/chat/resolve/main/api/utils/logger.js
- Command line
-
hf download hf://spaces/Zhitomir/chat/api/utils/logger.js
-
curl -L -o logger.js https://huggingface.co/spaces/Zhitomir/chat/resolve/main/api/utils/logger.js
331 Bytes
| const winston = require('winston'); | |
| const logger = winston.createLogger({ | |
| level: 'info', | |
| format: winston.format.combine(winston.format.timestamp(), winston.format.json()), | |
| transports: [ | |
| new winston.transports.Console(), | |
| new winston.transports.File({ filename: 'login-logs.log' }), | |
| ], | |
| }); | |
| module.exports = logger; | |