AS a developer, I want there to be a logger added to the bot #396

Open
opened 2024-01-21 14:00:17 +00:00 by Vylpes · 0 comments
Owner

Epic:
Story Points:


SO THAT I can have access to the bot logs saved in a nice format

Acceptance Criteria

GIVEN I am a developer
WHEN I run the bot in the terminal
THEN the bot will log to the terminal in a nice format

GIVEN I am a developer
WHEN I run the bot
AND have the DATA_DIR environment variable supplied
THEN the bot will save logs to that location
AND rotate the log file daily

GIVEN I am a developer
WHEN I run the bot
AND enable the discord logger function
THEN the bot will also send these logs to a discord webhook

Subtasks

No subtasks

Notes

Epic: \ Story Points: --- SO THAT I can have access to the bot logs saved in a nice format ## Acceptance Criteria GIVEN I am a developer WHEN I run the bot in the terminal THEN the bot will log to the terminal in a nice format GIVEN I am a developer WHEN I run the bot AND have the `DATA_DIR` environment variable supplied THEN the bot will save logs to that location AND rotate the log file daily GIVEN I am a developer WHEN I run the bot AND enable the discord logger function THEN the bot will also send these logs to a discord webhook ## Subtasks *No subtasks* ## Notes - https://www.npmjs.com/package/winston - https://www.npmjs.com/package/winston-daily-rotate-file - https://www.npmjs.com/package/winston-discord-transport
Vylpes added the
type
story
needs criteria
needs estimate
labels 2024-01-21 14:00:26 +00:00
Vylpes changed title from Add a logger to the project to AS a developer, I want there to be a logger added to the bot 2024-10-20 16:49:32 +01:00
Vylpes removed the
needs criteria
label 2024-10-20 16:53:10 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: RabbitLabs/vylbot-app#396
No description provided.