Skip to content
/ logoru Public
generated from gleich/go_template

🌲 golang port of Delgan's python loguru (just logging)

License

Notifications You must be signed in to change notification settings

gleich/logoru

Repository files navigation

logoru

🌲 golang port of Delgan's python loguru

build test lint

πŸš€ Install

Run the following command in your terminal:

go get -u github.com/gleich/logoru

πŸ“ Documentation GoDoc

func Debug

func Debug(msg interface{})

Output a debugging message

Example

package main


import "github.com/gleich/logoru"

func main() {
    logoru.Debug("Here is a debug message")
    logoru.Debug("Hello", "World")
}

Output:

func Info

func Info(msg interface{})

Output an info message

Example

package main


import "github.com/gleich/logoru"

func main() {
    logoru.Info("Here is an info message")
    logoru.Info("Hello", "World")
}

Output:

func Success

func Success(msg interface{})

Output a success message

Example

package main


import "github.com/gleich/logoru"

func main() {
    logoru.Success("Here is a success message")
    logoru.Success("Hello", "World")
}

Output:

func Warning

func Warning(msg interface{})

Output a warning message

Example

package main


import "github.com/gleich/logoru"

func main() {
    logoru.Warning("Here is a warning message")
    logoru.Warning("Hello", "World")
}

Output:

func Error

func Error(msg interface{})

Output a error message

Example

package main


import "github.com/gleich/logoru"

func main() {
    logoru.Error("Here is an error message")
    logoru.Error("Hello", "World")
}

Output:

func Critical

func Critical(msg interface{})

Output a critical message which will panic at the end.

Example

package main


import "github.com/gleich/logoru"

func main() {
    logoru.Critical("Here is a critical message") // Panic occurs
}

Output:

πŸ™Œ Contributing

Before contributing please read the CONTRIBUTING.md file

πŸ‘₯ Contributors

About

🌲 golang port of Delgan's python loguru (just logging)

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •