Skip to content

Conversation

moda20
Copy link

@moda20 moda20 commented Oct 29, 2019

I added logging capabilities based on operations.
logging in the operation means adding steps and their description. this can be done via predefined methods that take a description and extra data. the logs are stored to file on error only and are marked by a request ID that is injected. on a success, the trace id deleted forever.

added refactoring for the operations (logging methods) and the repositories.
create a base repository for sequelize with the most common methods predefined. extending the base repository and injecting the sequelize model in the super constructor as well as the mapper is a mandatory step.

this only allows for one model and one mapper.

Changed readme to include logging mechanism description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant