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

Ajouter un logger afin de faciliter l'analyse et le debug #618

Closed
ggrossetie opened this issue Apr 22, 2022 · 0 comments · Fixed by #619
Closed

Ajouter un logger afin de faciliter l'analyse et le debug #618

ggrossetie opened this issue Apr 22, 2022 · 0 comments · Fixed by #619

Comments

@ggrossetie
Copy link
Collaborator

Actuellement nous utilisons uniquement console.error mais la lecture des logs n'est pas évidente.
Je propose d'utiliser https://github.com/pinojs/pino afin d'avoir des logs structurés (avec le timestamp) et éventuellement des informations de contexte comme l'identifiant de l'utilisateur qui a fait l'action.

ggrossetie added a commit to ggrossetie/stylo that referenced this issue Apr 28, 2022
ggrossetie added a commit that referenced this issue May 4, 2022
* resolves #618 ajout de pino logger sur le backend (graphql)

* Ajout logger sur le service export
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant