Skip to content

ZiXyos/glog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glog

Just a wrapper around slog and log

Usage

see in exmaple/main.go

package main

import (
	"log/slog"

	"github.com/zixyos/glog"
);

func main() {
  logger, err := glog.New(
    glog.WithLevel(slog.LevelDebug),
    glog.WithFormat(glog.TextFormatter),
  );
  if err != nil {
    panic(err)
  }
  logger.Info("Hello World");
}

About

my golang logger using slog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages