github.com/raohwork/gorm0log
Package gorm0log provides a gorm logger using zerolog as backend. Thanks to zerolog, we have goo performance since most features are skipped if the log message is not visible. If you queries gorm with context (gorm.DB.WithContext), the context can be handled by a function in Config named "Customize". Default value of Config should be fairly enough for small projects. gorm.DB.Debug swtiches underlying zerolog.Logger to Debug level, which shows every message but Trace level ones. Some features, controled by Config, can be set to customized level. So you can disable those messages by changing its level to UseTrace.
proxy.golang.org
v0.0.1
almost 2 years ago
1
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/raohwork/gorm0log
spec |
| License | MPL-2.0 |
| Namespace | github.com/raohwork |
| First Release | almost 2 years ago |
| Last Synced | 6 days ago |
Repository
| Stars | 0 on GitHub |
| Forks | 0 on GitHub |