π² golang port of Delgan's python loguru
Run the following command in your terminal:
go get -u github.com/gleich/logoru
func Debug(msg interface{})
Output a debugging message
package main
import "github.com/gleich/logoru"
func main() {
logoru.Debug("Here is a debug message")
logoru.Debug("Hello", "World")
}
Output:
func Info(msg interface{})
Output an info message
package main
import "github.com/gleich/logoru"
func main() {
logoru.Info("Here is an info message")
logoru.Info("Hello", "World")
}
Output:
func Success(msg interface{})
Output a success message
package main
import "github.com/gleich/logoru"
func main() {
logoru.Success("Here is a success message")
logoru.Success("Hello", "World")
}
Output:
func Warning(msg interface{})
Output a warning message
package main
import "github.com/gleich/logoru"
func main() {
logoru.Warning("Here is a warning message")
logoru.Warning("Hello", "World")
}
Output:
func Error(msg interface{})
Output a error message
package main
import "github.com/gleich/logoru"
func main() {
logoru.Error("Here is an error message")
logoru.Error("Hello", "World")
}
Output:
func Critical(msg interface{})
Output a critical message which will panic at the end.
package main
import "github.com/gleich/logoru"
func main() {
logoru.Critical("Here is a critical message") // Panic occurs
}
Output:
Before contributing please read the CONTRIBUTING.md file