Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor logging functions to use
ZapLogger
interface
- Add a new interface `ZapLogger` with `Info` and `Error` methods - Change the type of the `logger` parameter in the `Ginzap` function to `ZapLogger` - Change the type of the `logger` parameter in the `GinzapWithConfig` function to `ZapLogger` - Change the type of the `logger` parameter in the `RecoveryWithZap` function to `ZapLogger` - Change the type of the `logger` parameter in the `CustomRecoveryWithZap` function to `ZapLogger` co-author: @a5r0n https://github.com/a5r0n fix #39 fix #38 Signed-off-by: Bo-Yi Wu <[email protected]>
- Loading branch information