Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleHandlerOptions_customLevels (0.38 sec)

  1. src/log/slog/example_custom_levels_test.go

    // In addition to the default log levels, it introduces Trace, Notice, and
    // Emergency levels. The ReplaceAttr changes the way levels are printed for both
    // the standard log levels and the custom log levels.
    func ExampleHandlerOptions_customLevels() {
    	// Exported constants from a custom logging package.
    	const (
    		LevelTrace     = slog.Level(-8)
    		LevelDebug     = slog.LevelDebug
    		LevelInfo      = slog.LevelInfo
    		LevelNotice    = slog.Level(2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 17:06:26 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top