identity-service/internal/app/log.go

16 lines
245 B
Go
Raw Normal View History

2022-06-19 15:19:05 +02:00
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...)
}