lerenn / asyncapi-codegen

An AsyncAPI Golang Code generator that generates all Go code from the broker to the application/user. Just plug your application to your favorite message broker!
Apache License 2.0
82 stars 22 forks source link

Change loggers to add infos not in context but as arguments. #133

Open lerenn opened 5 months ago

lerenn commented 5 months ago

For now, the loggers uses additional information from context, but doing a custom logger makes it hard to get those info as each one should be unwrapped from the context.

So we should make it explicitly passed by argument in the generated code and remove the context embedding in loggers (not in the generated code though).