logoru

package module
v0.0.0-...-d86cd89 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2023 License: MIT Imports: 6 Imported by: 14

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Critical

func Critical(msg ...interface{})

Output a critical message

func Debug

func Debug(msg ...interface{})

Output a debugging message

func Error

func Error(msg ...interface{})

Output an error message

func Info

func Info(msg ...interface{})

Output an info message

func Success

func Success(msg ...interface{})

Output a success message

func Warning

func Warning(msg ...interface{})

Output a warning message

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL