Skip to content

Commit

Permalink
feat(log): add log module
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed May 2, 2023
1 parent 7da97b1 commit b957470
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions log/log.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Package log initializes the logger for Soft Serve modules.
package log

import (
"os"

"github.com/charmbracelet/log"
)

func init() {
if os.Getenv("SOFT_SERVE_DEBUG") == "true" {
log.SetLevel(log.DebugLevel)
}
}

0 comments on commit b957470

Please sign in to comment.