refactor: centralize protobuf and remove go-zero
This commit is contained in:
13
shared/logging/context.go
Normal file
13
shared/logging/context.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// Package logging centralizes application logging without coupling services to a framework.
|
||||
package logging
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log/slog"
|
||||
)
|
||||
|
||||
// Context returns the process logger. The context parameter keeps call sites ready for
|
||||
// a future trace-aware handler without imposing one on every service today.
|
||||
func Context(_ context.Context) *slog.Logger {
|
||||
return slog.Default()
|
||||
}
|
||||
Reference in New Issue
Block a user