mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 05:28:16 +00:00
wip: refactoring
This commit is contained in:
parent
ed9fba99c9
commit
dfe5fd8d97
19 changed files with 97 additions and 75 deletions
|
@ -42,7 +42,7 @@ to assist developers in writing, debugging, and understanding code directly from
|
|||
|
||||
// Setup logging
|
||||
lvl := new(slog.LevelVar)
|
||||
logger := slog.New(slog.NewTextHandler(logging.NewWriter(), &slog.HandlerOptions{
|
||||
logger := slog.New(slog.NewTextHandler(logging.NewSlogWriter(), &slog.HandlerOptions{
|
||||
Level: lvl,
|
||||
}))
|
||||
slog.SetDefault(logger)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue