Categorygithub.com/xuender/klog
repositorypackage
1.21.0
Repository: https://github.com/xuender/klog.git
Documentation: pkg.go.dev

# README

klog

Action Report Card godoc License

Use

package main

import (
  "log/slog"
  "os"

  "github.com/xuender/klog"
)

func main() {
  klog.SetLogFile(os.TempDir(), "test.log")
  klog.SetLevel(slog.LevelDebug)

  slog.Debug("debug")
  slog.Info("info")
}

License

© ender, 2023~time.Now

MIT LICENSE