rest-api-prototype/internal/app/log.go
Piotr Biernat 39ed417398
Some checks failed
continuous-integration/drone/push Build is failing
[feature] Updated go.mod to Go v1.18 and extended log func
2022-06-18 15:01:05 +02:00

16 lines
245 B
Go

package app
import "log"
func Panic(v ...any) {
log.Panicln(Name + ":", v)
}
func Panicf(format string, v ...any) {
log.Panicf(Name + ": " + format, v...)
}
func Panicln(v ...any) {
v = append([]any{Name + ":"}, v...)
log.Panicln(v...)
}