mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00

* login logs and output * fix(merge) * fix(wiston) unistall * fix(winston) installation in api * fix(logger) new module
12 lines
331 B
JavaScript
12 lines
331 B
JavaScript
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;
|