Versions in this module Expand all Collapse all v1 v1.1.9 Oct 1, 2018 Changes in this version + var CrashReports = settings.RegisterBoolSetting("diagnostics.reporting.send_crash_reports", "send crash and panic reports", ...) + var DiagnosticsReportingEnabled = settings.RegisterBoolSetting("diagnostics.reporting.enabled", ...) + var ErrIntOverflowLog = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthLog = fmt.Errorf("proto: negative length found during unmarshaling") + var LogFileMaxSize int64 = 10 << 20 + var LogFilesCombinedMaxSize = LogFileMaxSize * 10 + var OrigStderr = func() *os.File { ... }() + var Severity_name = map[int32]string + var Severity_value = map[string]int32 + func DirSet() bool + func DisableTracebacks() func() + func ErrEvent(ctx context.Context, msg string) + func ErrEventf(ctx context.Context, format string, args ...interface{}) + func Error(ctx context.Context, args ...interface{}) + func Errorf(ctx context.Context, format string, args ...interface{}) + func ErrorfDepth(ctx context.Context, depth int, format string, args ...interface{}) + func Event(ctx context.Context, msg string) + func Eventf(ctx context.Context, format string, args ...interface{}) + func Fatal(ctx context.Context, args ...interface{}) + func FatalOnPanic() + func Fatalf(ctx context.Context, format string, args ...interface{}) + func FatalfDepth(ctx context.Context, depth int, format string, args ...interface{}) + func FinishEventLog(ctx context.Context) + func Flush() + func GetLogReader(filename string, restricted bool) (io.ReadCloser, error) + func HasSpanOrEvent(ctx context.Context) bool + func Info(ctx context.Context, args ...interface{}) + func Infof(ctx context.Context, format string, args ...interface{}) + func InfofDepth(ctx context.Context, depth int, format string, args ...interface{}) + func Intercept(ctx context.Context, f InterceptorFn) + func LoggingToStderr(s Severity) bool + func MakeMessage(ctx context.Context, format string, args []interface{}) string + func NewStdLogger(severity Severity) *stdLog.Logger + func RecoverAndReportPanic(ctx context.Context, sv *settings.Values) + func ReportPanic(ctx context.Context, sv *settings.Values, r interface{}, depth int) + func SendCrashReport(ctx context.Context, sv *settings.Values, depth int, format string, ...) + func SetExitFunc(f func(int)) + func SetSync(sync bool) + func SetVModule(value string) error + func SetupCrashReporter(ctx context.Context, cmd string) + func Shout(ctx context.Context, sev Severity, args ...interface{}) + func StartGCDaemon() + func V(level level) bool + func VDepth(level level, depth int) bool + func VEvent(ctx context.Context, level level, msg string) + func VEventf(ctx context.Context, level level, format string, args ...interface{}) + func VEventfDepth(ctx context.Context, depth int, level level, format string, ...) + func Warning(ctx context.Context, args ...interface{}) + func Warningf(ctx context.Context, format string, args ...interface{}) + func WarningfDepth(ctx context.Context, depth int, format string, args ...interface{}) + func WithEventLog(ctx context.Context, family, title string) context.Context + func WithLogTag(ctx context.Context, name string, value interface{}) context.Context + func WithLogTagInt(ctx context.Context, name string, value int) context.Context + func WithLogTagInt64(ctx context.Context, name string, value int64) context.Context + func WithLogTagStr(ctx context.Context, name string, value string) context.Context + func WithNoEventLog(ctx context.Context) context.Context + type AmbientContext struct + Tracer opentracing.Tracer + func (ac *AmbientContext) AddLogTag(name string, value interface{}) + func (ac *AmbientContext) AddLogTagInt(name string, value int) + func (ac *AmbientContext) AddLogTagInt64(name string, value int64) + func (ac *AmbientContext) AddLogTagStr(name string, value string) + func (ac *AmbientContext) AnnotateCtx(ctx context.Context) context.Context + func (ac *AmbientContext) AnnotateCtxWithSpan(ctx context.Context, opName string) (context.Context, opentracing.Span) + func (ac *AmbientContext) FinishEventLog() + func (ac *AmbientContext) ResetAndAnnotateCtx(ctx context.Context) context.Context + func (ac *AmbientContext) SetEventLog(family, title string) + type Entry struct + File string + Goroutine int64 + Line int64 + Message string + Severity Severity + Time int64 + func FetchEntriesFromFiles(startTimestamp, endTimestamp int64, maxEntries int, pattern *regexp.Regexp) ([]Entry, error) + func MakeEntry(s Severity, t int64, file string, line int, msg string) Entry + func (*Entry) Descriptor() ([]byte, []int) + func (*Entry) ProtoMessage() + func (e Entry) Format(w io.Writer) error + func (m *Entry) Marshal() (dAtA []byte, err error) + func (m *Entry) MarshalTo(dAtA []byte) (int, error) + func (m *Entry) Reset() + func (m *Entry) Size() (n int) + func (m *Entry) String() string + func (m *Entry) Unmarshal(dAtA []byte) error + type EntryDecoder struct + func NewEntryDecoder(in io.Reader) *EntryDecoder + func (d *EntryDecoder) Decode(entry *Entry) error + type FileDetails struct + Host string + PID int64 + Program string + Time int64 + UserName string + func (*FileDetails) Descriptor() ([]byte, []int) + func (*FileDetails) ProtoMessage() + func (m *FileDetails) Marshal() (dAtA []byte, err error) + func (m *FileDetails) MarshalTo(dAtA []byte) (int, error) + func (m *FileDetails) Reset() + func (m *FileDetails) Size() (n int) + func (m *FileDetails) String() string + func (m *FileDetails) Unmarshal(dAtA []byte) error + type FileInfo struct + Details FileDetails + ModTimeNanos int64 + Name string + SizeBytes int64 + func ListLogFiles() ([]FileInfo, error) + func (*FileInfo) Descriptor() ([]byte, []int) + func (*FileInfo) ProtoMessage() + func (m *FileInfo) Marshal() (dAtA []byte, err error) + func (m *FileInfo) MarshalTo(dAtA []byte) (int, error) + func (m *FileInfo) Reset() + func (m *FileInfo) Size() (n int) + func (m *FileInfo) String() string + func (m *FileInfo) Unmarshal(dAtA []byte) error + type InterceptorFn func(entry Entry) + type SafeMessager interface + SafeMessage func() string + type SafeType struct + V interface{} + func Safe(v interface{}) SafeType + func (st SafeType) SafeMessage() string + type Severity int32 + const Severity_DEFAULT + const Severity_ERROR + const Severity_FATAL + const Severity_INFO + const Severity_NONE + const Severity_UNKNOWN + const Severity_WARNING + func SeverityByName(s string) (Severity, bool) + func (Severity) EnumDescriptor() ([]byte, []int) + func (s *Severity) Name() string + func (s *Severity) Set(value string) error + func (x Severity) String() string + type TestLogScope struct + func Scope(t tShim) *TestLogScope + func ScopeWithoutShowLogs(t tShim) *TestLogScope + func (l *TestLogScope) Close(t tShim) Incompatible versions in this module v19.2.12+incompatible Jan 12, 2021