1 Commits
Author SHA1 Message Date
deytenit ace8170323 Comply to Docker Logging 2023-12-06 13:40:18 +03:00
3 changed files with 3 additions and 10 deletions

No files matched your search

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