- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ErrorOutputPaths (0.17 sec)
-
pkg/log/options_test.go
ErrorOutputPaths: []string{defaultErrorOutputPath}, defaultOutputLevels: "default:info,grpc:none", stackTraceLevels: levelToString[NoneLevel], RotationMaxAge: defaultRotationMaxAge, RotationMaxSize: defaultRotationMaxSize, RotationMaxBackups: defaultRotationMaxBackups, }}, {"--log_stacktrace_level default:none", Options{ OutputPaths: []string{defaultOutputPath},
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 12.5K bytes - Viewed (0) -
pkg/log/options.go
// standard I/O streams. This defaults to stdout. OutputPaths []string // ErrorOutputPaths is a list of file system paths to write logger errors to. // The special values stdout and stderr can be used to output to the // standard I/O streams. This defaults to stderr. ErrorOutputPaths []string // RotateOutputPath is the path to a rotating log file. This file should
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 07 04:04:34 UTC 2024 - 10.6K bytes - Viewed (0) -
pkg/log/config.go
MaxSize: options.RotationMaxSize, MaxBackups: options.RotationMaxBackups, MaxAge: options.RotationMaxAge, }) } errSink, closeErrorSink, err := zap.Open(options.ErrorOutputPaths...) if err != nil { return nil, nil, nil, err } var outputSink zapcore.WriteSyncer if len(options.OutputPaths) > 0 { outputSink, _, err = zap.Open(options.OutputPaths...) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 12.1K bytes - Viewed (0) -
pkg/log/config_test.go
o = DefaultOptions() // using invalid filename o.OutputPaths = []string{"//"} err = Configure(o) if err == nil { t.Errorf("Got success, expecting error") } o = DefaultOptions() o.ErrorOutputPaths = []string{"//"} err = Configure(o) if err == nil { t.Errorf("Got success, expecting error") } } func TestRotateNoStdout(t *testing.T) { // Ensure that rotation is setup properly
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 10.9K bytes - Viewed (0) -
tools/bug-report/pkg/bugreport/bugreport.go
mkdirOrExit(logDir) f, err := os.Create(logDir) if err != nil { return err } f.Close() op := []string{logDir} opt2 := *opt opt2.OutputPaths = op opt2.ErrorOutputPaths = op opt2.SetDefaultOutputLevel("default", log.InfoLevel) return log.Configure(&opt2) } func logRuntime(start time.Time, format string, args ...any) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 05 20:57:29 UTC 2024 - 20.7K bytes - Viewed (0)