Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for LevelError (0.71 sec)

  1. src/log/slog/logger.go

    	l.log(ctx, LevelWarn, msg, args...)
    }
    
    // Error logs at [LevelError].
    func (l *Logger) Error(msg string, args ...any) {
    	l.log(context.Background(), LevelError, msg, args...)
    }
    
    // ErrorContext logs at [LevelError] with the given context.
    func (l *Logger) ErrorContext(ctx context.Context, msg string, args ...any) {
    	l.log(ctx, LevelError, msg, args...)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 18:26:18 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. src/log/slog/logger_test.go

    		wantLevel Level
    	}{
    		{l.DebugContext, LevelDebug},
    		{l.InfoContext, LevelInfo},
    		{l.WarnContext, LevelWarn},
    		{l.ErrorContext, LevelError},
    		{DebugContext, LevelDebug},
    		{InfoContext, LevelInfo},
    		{WarnContext, LevelWarn},
    		{ErrorContext, LevelError},
    	} {
    		h.clear()
    		ctx := context.WithValue(context.Background(), "L", test.wantLevel)
    
    		test.f(ctx, "msg")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 10 21:25:30 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  3. api/go1.21.txt

    pkg log/slog, const KindUint64 = 7 #56345
    pkg log/slog, const KindUint64 Kind #56345
    pkg log/slog, const LevelDebug = -4 #56345
    pkg log/slog, const LevelDebug Level #56345
    pkg log/slog, const LevelError = 8 #56345
    pkg log/slog, const LevelError Level #56345
    pkg log/slog, const LevelInfo = 0 #56345
    pkg log/slog, const LevelInfo Level #56345
    pkg log/slog, const LevelKey ideal-string #56345
    pkg log/slog, const LevelKey = "level" #56345
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 09:39:17 UTC 2023
    - 25.6K bytes
    - Viewed (0)
Back to top