fix: 调整log

This commit is contained in:
王荣昌 2024-04-07 12:20:48 +08:00
parent 233db23124
commit cb83d7a04c

View File

@ -78,27 +78,27 @@ func loadKisDefaultLog(opts ...KisLogOptions) *kisDefaultSlog {
}
func (k *kisDefaultSlog) InfoFX(ctx context.Context, str string, v ...interface{}) {
slog.InfoContext(ctx, str, v)
slog.InfoContext(ctx, str, v...)
}
func (k *kisDefaultSlog) ErrorFX(ctx context.Context, str string, v ...interface{}) {
slog.ErrorContext(ctx, str, v)
slog.ErrorContext(ctx, str, v...)
}
func (k *kisDefaultSlog) DebugFX(ctx context.Context, str string, v ...interface{}) {
slog.DebugContext(ctx, str, v)
slog.DebugContext(ctx, str, v...)
}
func (k *kisDefaultSlog) InfoF(str string, v ...interface{}) {
slog.Info(str, v)
slog.Info(str, v...)
}
func (k *kisDefaultSlog) ErrorF(str string, v ...interface{}) {
slog.Error(str, v)
slog.Error(str, v...)
}
func (k *kisDefaultSlog) DebugF(str string, v ...interface{}) {
slog.Debug(str, v)
slog.Debug(str, v...)
}
func (k *kisDefaultSlog) SetDebugMode(enable bool) {