Merged
Conversation
…move Winston - no dependencies required
Collaborator
Author
|
Resolves #5 |
raupp
requested changes
Nov 28, 2023
Contributor
raupp
left a comment
There was a problem hiding this comment.
Very good work, but I think we can improve it a bit more!:)
…nt and separate individual routes logic
raupp
approved these changes
Dec 1, 2023
Contributor
There was a problem hiding this comment.
Shure, it should have his on version, its a big change i think
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Completa refatoração do Logger para remover a dependência do Winston e melhorar sua performance.
Com isso alguns suportes foram removidos, por exemplo:
Em relação a utilização do Logger, não deve haver nenhuma incompatibilidade com as versões anteriores. É recomendado apenas utilizar da função
createLoggerpara instanciar o logger, visto que o método.init()foi deprecado.A principal mudança agora envolve a remoção completa da intercomunicação IPC para alteração da verbosidade do logger durante a execução das aplicações. Houve uma substituição por um servidor HTTP implementado a partir do módulo
httpdo nodejs, favorecendo leveza e performance, dessa maneira é possível continuar alterando a verbosidade dos logs através de um request HTTP.O módulo conta com as seguintes variáveis de ambiente para configurar o comportamento dos logs:
OZLOGGER_LEVEL=debug: nível padrão dos logsOZLOGGER_OUTPUT=json: formato de saída dos logsOZLOGGER_COLORS=false: atribui cor aos logsOZLOGGER_DATETIME=false: atribui data/hora aos logsOZLOGGER_SERVER=9898: porta na qual o servidor HTTP irá ouvir (localhost)