mirror of
https://github.com/aykhans/bsky-feedgen.git
synced 2025-07-17 21:34:00 +00:00
🦋
This commit is contained in:
17
pkg/logger/base.go
Normal file
17
pkg/logger/base.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package logger
|
||||
|
||||
import (
|
||||
"log/slog"
|
||||
"os"
|
||||
)
|
||||
|
||||
var Log *slog.Logger
|
||||
|
||||
func init() {
|
||||
Log = slog.New(
|
||||
slog.NewTextHandler(
|
||||
os.Stdout,
|
||||
&slog.HandlerOptions{AddSource: true},
|
||||
),
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user