Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gorm support #127

Open
gagraler opened this issue Nov 16, 2023 · 2 comments
Open

gorm support #127

gagraler opened this issue Nov 16, 2023 · 2 comments
Labels
question Further information is requested

Comments

@gagraler
Copy link

slog是否支持grom,具体该如何实现

@inhere
Copy link
Member

inhere commented Nov 20, 2023

初始化gorm时,传实现了 grom 的log interface实例。这个实例不同级别的方法回调里,调用slog 实例记录日志就行

@inhere inhere added the question Further information is requested label Nov 20, 2023
@gagraler
Copy link
Author

有没有example呢,用zap结合gorm实现了,但是slog没太会整😢

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

No branches or pull requests

2 participants