Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

kylhuk/goLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

goLogger

Very simple logger written in golang

How to use

import(
  log "github.com/kylhuk/goLogger"
  "fmt"
)


// Just call AddLog with the desired LogLevel and the log message
log.AddLog(log.LogLevelWarning, "This is a Warning!")

// If you want the full struct
fmt.Println(fmt.Sprintf("%+v ", log.LogFull))

// If you want it as simple newLine delimitted string (Warning: This always gives you the whole log)
fmt.Println(log.LogFullAsString)

About

Very simple logger written in golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages