Documentation ¶
Index ¶
- Constants
- func ApplyParam(p Param, entry wlog.LogEntry)
- func ThreadDumpV1FromGoroutines(goroutinesContent []byte) logging.ThreadDumpV1
- func ToParams(diagnostic logging.Diagnostic, inParams []Param) []wlog.Param
- func WithLogger(ctx context.Context, logger Logger) context.Context
- type Logger
- type Param
Constants ¶
View Source
const ( TypeValue = "diagnostic.1" DiagnosticKey = "diagnostic" )
Variables ¶
This section is empty.
Functions ¶
func ApplyParam ¶
func ThreadDumpV1FromGoroutines ¶
func ThreadDumpV1FromGoroutines(goroutinesContent []byte) logging.ThreadDumpV1
ThreadDumpV1FromGoroutines unmarshals a "goroutine dump" (as formatted by panic or the runtime package) and returns a conjured logging.ThreadDumpV1 object.
Types ¶
type Logger ¶
type Logger interface {
Diagnostic(diagnostic logging.Diagnostic, params ...Param)
}
func FromContext ¶ added in v1.7.0
func NewFromCreator ¶
func NewFromCreator(w io.Writer, creator wlog.LoggerCreator) Logger
type Param ¶
type Param interface {
// contains filtered or unexported methods
}
func UnsafeParam ¶
func UnsafeParams ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.