Move backend files to backend/ subdirectory

This commit is contained in:
2025-07-25 19:09:35 -03:00
parent d04304b573
commit 1bd4ca0d98
59 changed files with 0 additions and 0 deletions

22
backend/modules/logger.js Normal file
View File

@@ -0,0 +1,22 @@
const winston = require('winston');
var logger = new (winston.Logger)({
transports: [
new (winston.transports.File)({
name: 'debug-file',
filename: 'urge-debug.log',
handleExceptions: true,
humanReadableUnhandledException: true,
level: 'debug'
}),
new (winston.transports.File)({
name: 'error-file',
filename: 'urge-error.log',
handleExceptions: true,
humanReadableUnhandledException: true,
level: 'error'
})
]
});
module.exports = logger;