Skip to content

Commit

Permalink
added Panic() and Panicln()
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffB42 committed Mar 23, 2021
1 parent a60e1c0 commit ed7e049
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions logger/logger.go
Expand Up @@ -176,3 +176,11 @@ func Fatal(args ...interface{}) {
func Fatalf(format string, args ...interface{}) {
_logrusEntry.Fatalf(readIndentation() + format, args...)
}

func Panic(args ...interface{}) {
_logrusEntry.Panic(readIndentation() + fmt.Sprint(args...))
}

func Panicf(format string, args ...interface{}) {
_logrusEntry.Panicf(readIndentation() + format, args...)
}

0 comments on commit ed7e049

Please sign in to comment.