feat: update dependencies

This commit is contained in:
2023-11-19 20:52:38 +01:00
parent 4c72331a76
commit e40a8515cf
5 changed files with 85 additions and 60 deletions

View File

@ -56,32 +56,32 @@ func Make(f Format, w io.Writer) slog.Logger {
return slog.Make(sink)
}
func Debug(ctx context.Context, msg string, fields ...Field) {
func Debug(ctx context.Context, msg string, fields ...any) {
slog.Helper()
defaultLogger.Debug(ctx, msg, fields...)
}
func Info(ctx context.Context, msg string, fields ...Field) {
func Info(ctx context.Context, msg string, fields ...any) {
slog.Helper()
defaultLogger.Info(ctx, msg, fields...)
}
func Warn(ctx context.Context, msg string, fields ...Field) {
func Warn(ctx context.Context, msg string, fields ...any) {
slog.Helper()
defaultLogger.Warn(ctx, msg, fields...)
}
func Error(ctx context.Context, msg string, fields ...Field) {
func Error(ctx context.Context, msg string, fields ...any) {
slog.Helper()
defaultLogger.Error(ctx, msg, fields...)
}
func Critical(ctx context.Context, msg string, fields ...Field) {
func Critical(ctx context.Context, msg string, fields ...any) {
slog.Helper()
defaultLogger.Critical(ctx, msg, fields...)
}
func Fatal(ctx context.Context, msg string, fields ...Field) {
func Fatal(ctx context.Context, msg string, fields ...any) {
slog.Helper()
defaultLogger.Fatal(ctx, msg, fields...)
}