clamp-orchestrator / clamp-core

A microservices flow orchestrator and workflow manager.
https://clamp-orchestrator.github.io/clamp-orchestrator/
MIT License
9 stars 4 forks source link

Introduce logs to log information in structured way #63

Open priyaaank opened 4 years ago

priyaaank commented 4 years ago

Is your feature request related to a problem? Please describe. Clamp currently does not have a structured logging mechanism, this issue requests that logging should be done in a structured way and can be used/attached in case of issues that users may face while using the library.

Describe the solution you'd like There are several aspects that are important to consider as a logging structure is set up

Describe alternatives you've considered Alternatives are that logs are always sent to STDOUT, which means that OS will redirect the logs to the default logging file.

Additional context None

sivachandran commented 3 years ago

@priyaaank I had great success using logrus in my previous project. It is one of the widely used logging libraries in the Go ecosystem. There are faster alternatives like zap, zerolog, etc. But I feel logrus would suit better for Clamp.

Migrating existing implementation won't be a big effort in my analysis. logrus provides Printf and Println functions. So, it should be a drop-in replacement.