Categorygithub.com/gleich/logoru
modulepackage
0.0.0-20230101033757-d86cd895c7a1
Repository: https://github.com/gleich/logoru.git
Documentation: pkg.go.dev

# README

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

# Functions

Output a critical message.
Output a debugging message.
Output an error message.
Output an info message.
Output a success message.
Output a warning message.