Skip to content

#Improve: Use more preferable way to specify logger - Interface#34

Open
nape-max wants to merge 1 commit intoalexandrevicenzi:masterfrom
nape-max:master
Open

#Improve: Use more preferable way to specify logger - Interface#34
nape-max wants to merge 1 commit intoalexandrevicenzi:masterfrom
nape-max:master

Conversation

@nape-max
Copy link

@nape-max nape-max commented Jan 9, 2023

  1. By using Interface, you have posability pass any logger such as zap.Logger by using Adapter pattern.
    I'm using it in my production code and it's work great, because I was need JSON logs, but it's bad idea to implement it by yourself.

  2. Migrate from version 1.11 to 1.18 to get support 'any' predefined type.

…ve posability pass any logger such as zap.Logger by using Adapter pattern.
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

Comments