Comply to Docker Logging

This commit is contained in:
deytenit committed 2023-12-06 13:40:18 +03:00
1 parent 1374bcc25d
commit 252a202810
3 files changed
+3 -10

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "quetza-bot",
"version": "4.2.1",
"version": "4.2.2",
"description": "Discord multipurpose bot",
"type": "module",
"main": "./dist/index.js",
+1 -8
View File
@@ -4,17 +4,10 @@ const logger = winston.createLogger({
level: "info",
format: winston.format.combine(winston.format.timestamp(), winston.format.json()),
transports: [
new winston.transports.Console({ format: winston.format.simple() }),
new winston.transports.File({ filename: "logs/error.log", level: "error" }),
new winston.transports.File({ filename: "logs/combined.log" })
]
});
if (process.env.NODE_ENV !== "production") {
logger.add(
new winston.transports.Console({
format: winston.format.simple()
})
);
}
export default logger;
+1 -1
View File
@@ -4,7 +4,7 @@ import { fileURLToPath } from "url";
const name = "core";
const description = "Quetza core functionality";
const author = "unknowableshade";
const tag = "4.2.0";
const tag = "4.2.2";
const rootDir = path.dirname(fileURLToPath(import.meta.url));