Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for LevelInfo (0.41 sec)

  1. src/log/slog/logger_test.go

    	logger.Log(ctx, LevelInfo, "")
    	check(0)
    	logger.LogAttrs(ctx, LevelInfo, "")
    	check(1)
    	logger.Debug("")
    	check(2)
    	logger.Info("")
    	check(3)
    	logger.Warn("")
    	check(4)
    	logger.Error("")
    	check(5)
    	Debug("")
    	check(6)
    	Info("")
    	check(7)
    	Warn("")
    	check(8)
    	Error("")
    	check(9)
    	Log(ctx, LevelInfo, "")
    	check(10)
    	LogAttrs(ctx, LevelInfo, "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 10 21:25:30 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  2. src/log/slog/logger.go

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

    			sub2 := h.WithAttrs([]Attr{Bool("sub2", true)})
    			var wg sync.WaitGroup
    			for i := 0; i < count; i++ {
    				sub1Record := NewRecord(time.Time{}, LevelInfo, "hello from sub1", 0)
    				sub1Record.AddAttrs(Int("i", i))
    				sub2Record := NewRecord(time.Time{}, LevelInfo, "hello from sub2", 0)
    				sub2Record.AddAttrs(Int("i", i))
    				wg.Add(1)
    				go func() {
    					defer wg.Done()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 13:57:53 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  4. src/log/slog/doc.go

    suppressing debug logging until it is needed.
    The built-in handlers can be configured with the minimum level to output by
    setting [HandlerOptions.Level].
    The program's `main` function typically does this.
    The default value is LevelInfo.
    
    Setting the [HandlerOptions.Level] field to a [Level] value
    fixes the handler's minimum level throughout its lifetime.
    Setting it to a [LevelVar] allows the level to be varied dynamically.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 15 14:35:48 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  5. src/log/slog/handler.go

    	AddSource bool
    
    	// Level reports the minimum record level that will be logged.
    	// The handler discards records with lower levels.
    	// If Level is nil, the handler assumes LevelInfo.
    	// The handler calls Level.Level for each record processed;
    	// to adjust the minimum level dynamically, use a LevelVar.
    	Level Leveler
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 18:18:13 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  6. api/go1.21.txt

    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
    pkg log/slog, const LevelWarn = 4 #56345
    pkg log/slog, const LevelWarn 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