Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging #46

Open
Lan2u opened this issue Jul 12, 2020 · 1 comment
Open

Logging #46

Lan2u opened this issue Jul 12, 2020 · 1 comment
Labels
bug Something isn't working devops enhancement New feature or request

Comments

@Lan2u
Copy link
Member

Lan2u commented Jul 12, 2020

Is your feature request related to a problem? Please describe.
We currently use console.log / .error on the backend, this system only works for local development, doesn't allow centralised logging of events across different parts of the system and doesn't have consistency in terms of the log structure (e.g. [DEBUG] etc. tags) making it hard to use with tools.

Describe the solution you'd like
We need to setup a system to allow centralised logging, this will likely need a logging microservice + database which other microservices can send log messages to. We will also need a common logging library used throughout the backend to make this easier.

Describe alternatives you've considered
We can continue with .log and .error for now as the gateway external API is currently blocking development on the front end.

We could use local logging but I think having designated logging microservices will result in the minimal amount of code reuse + allow ease of inspection.

@Lan2u Lan2u added bug Something isn't working enhancement New feature or request devops labels Jul 12, 2020
@Vitineth
Copy link
Contributor

Proposed idea: use winston (https://www.npmjs.com/package/winston) with a custom transport added (https://www.npmjs.com/package/winston#adding-custom-transports) to push to a logging microservice for global logging and analytics while still retaining local console / file logging for ease of development and debugging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working devops enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants