Skip to content

Commit

Permalink
feat: Add write package.
Browse files Browse the repository at this point in the history
  • Loading branch information
gowizzard committed Apr 9, 2024
1 parent e5ff47a commit 044b34e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions internal/write/logger.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Package write is to write the log messages to the console.
package write

import (
"log/slog"
"os"
)

// handler is to create a handler for the logger.
// Logger is to create a logger to handle the errors.
var (
handler = slog.NewTextHandler(os.Stdout, nil)
Logger = slog.New(handler)
)

0 comments on commit 044b34e

Please sign in to comment.