Skip to content

Add logging #12

@JasirZaeem

Description

@JasirZaeem

Need logging in the bot to record errors for better awareness of bugs and help in investigating them.

Current state

Errors are sent as response to the caller of the api. #11 adds logging using console.error in the errorHandler middleware which should make the errors visible on the caprover dashboard where c0d3ris deployed.

Proposed Solution

Add winston to log errors and use winston-logflare transport to forward them to our logflare account.

Metadata

Metadata

Assignees

Labels

improvementTo request improvements and features in c0d3r

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions