mirror of
https://github.com/Mikescher/kpsync.git
synced 2025-10-24 05:35:07 +02:00
non-functional wip state
This commit is contained in:
27
log/logger.go
Normal file
27
log/logger.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package log
|
||||
|
||||
//TODO
|
||||
|
||||
func Fatal(msg string) {
|
||||
panic(msg)
|
||||
}
|
||||
|
||||
func FatalErr(msg string, err error) {
|
||||
if err != nil {
|
||||
panic("ERROR: " + msg + "\n" + err.Error())
|
||||
} else {
|
||||
panic("ERROR: " + msg)
|
||||
}
|
||||
}
|
||||
|
||||
func LogError(msg string, err error) {
|
||||
if err != nil {
|
||||
println("ERROR: " + msg + "\n" + err.Error())
|
||||
} else {
|
||||
println("ERROR: " + msg)
|
||||
}
|
||||
}
|
||||
|
||||
func LogInfo(msg string) {
|
||||
println("INFO: " + msg)
|
||||
}
|
||||
Reference in New Issue
Block a user