init
This commit is contained in:
12
pkg/log/log.go
Normal file
12
pkg/log/log.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package log
|
||||
|
||||
import (
|
||||
"log/slog"
|
||||
"os"
|
||||
)
|
||||
|
||||
type Logger = *slog.Logger
|
||||
|
||||
func New() Logger {
|
||||
return slog.New(slog.NewTextHandler(os.Stdout, nil))
|
||||
}
|
||||
Reference in New Issue
Block a user