Add adapters

This commit is contained in:
2023-01-14 23:06:25 -08:00
parent ed50ff00ef
commit be389eb931
14 changed files with 913 additions and 4 deletions

View File

@@ -72,3 +72,13 @@ func Fatal(msg string) logger.LogBuilder {
func Fatalf(format string, v ...any) logger.LogBuilder {
return Logger.Fatalf(format, v...)
}
// Fatal creates a new fatal event with the given message
func Panic(msg string) logger.LogBuilder {
return Logger.Panic(msg)
}
// Fatalf creates a new fatal event with the formatted message
func Panicf(format string, v ...any) logger.LogBuilder {
return Logger.Panicf(format, v...)
}