refactor: framework modules log through diary components
- Each module logs through diary.For(<package>): cabana, lagoon, attach, cooler, postcard, beachcomber, lighthouse, centrifugo, flare, phrasebook, wristband, bouncer - App-published *slog.Logger overrides stay first; messages and attributes unchanged - sunscreen: InstallDefault documented as the compatibility entry point; diary wraps every channel - READMEs list diary as a dependency; logging docs: plugins use diary.For
This commit is contained in:
@@ -16,6 +16,10 @@ import (
|
||||
"gorm.io/gorm/logger"
|
||||
)
|
||||
|
||||
// moduleLog is lagoon's logger: records carry component=lagoon and follow
|
||||
// log.components.lagoon (diary).
|
||||
var moduleLog = diary.For("lagoon")
|
||||
|
||||
// Open pings dsn through pgx stdlib and returns that exact *sql.DB plus a
|
||||
// GORM handle opened on it.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user