Documentation ¶
Overview ¶
*
- description: 字段
- author: jarekzha@gmail.com
- date: Aug 24, 2022
*
- description: 初始化
- author: jarekzha@gmail.com
- date: Aug 24, 2022
*
- description: 选项
- author: jarekzha@gmail.com
- date: Aug 24, 2022
Package log 日志结构定义
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { Debug bool ProcessID string LogDir string LogFileName func(logdir, prefix, processID, suffix string) string LogSetting map[string]interface{} }
func NewOptions ¶
type TraceSpan ¶
type TraceSpan interface { // Trace is the root ID of the tree that contains all of the spans // related to this one. TraceID() string // Span is an ID that probabilistically uniquely identifies this // span. SpanID() string ExtractSpan() TraceSpan }
TraceSpan A SpanID refers to a single span.
func CreateTrace ¶
type TraceSpanImp ¶
TraceSpanImp TraceSpanImp
func (*TraceSpanImp) ExtractSpan ¶
func (t *TraceSpanImp) ExtractSpan() TraceSpan
ExtractSpan ExtractSpan
Click to show internal directories.
Click to hide internal directories.