mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-03 00:38:40 +08:00
fix misspelling (#513)
This commit is contained in:
parent
904d168f18
commit
56ad4776d4
@ -279,7 +279,7 @@ func Statf(format string, v ...interface{}) {
|
|||||||
statSync(fmt.Sprintf(format, v...))
|
statSync(fmt.Sprintf(format, v...))
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithCooldownMillis customizes logging on writting call stack interval.
|
// WithCooldownMillis customizes logging on writing call stack interval.
|
||||||
func WithCooldownMillis(millis int) LogOption {
|
func WithCooldownMillis(millis int) LogOption {
|
||||||
return func(opts *logOptions) {
|
return func(opts *logOptions) {
|
||||||
opts.logStackCooldownMills = millis
|
opts.logStackCooldownMills = millis
|
||||||
|
@ -67,7 +67,7 @@ func (l *traceLogger) write(writer io.Writer, level, content string) {
|
|||||||
outputJson(writer, l)
|
outputJson(writer, l)
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithContext sets ctx to log, for keeping tracing infomation.
|
// WithContext sets ctx to log, for keeping tracing information.
|
||||||
func WithContext(ctx context.Context) Logger {
|
func WithContext(ctx context.Context) Logger {
|
||||||
return &traceLogger{
|
return &traceLogger{
|
||||||
ctx: ctx,
|
ctx: ctx,
|
||||||
|
@ -9,7 +9,7 @@ type (
|
|||||||
// GaugeVecOpts is an alias of VectorOpts.
|
// GaugeVecOpts is an alias of VectorOpts.
|
||||||
GaugeVecOpts VectorOpts
|
GaugeVecOpts VectorOpts
|
||||||
|
|
||||||
// GaugeVec represents a guage vector.
|
// GaugeVec represents a gauge vector.
|
||||||
GaugeVec interface {
|
GaugeVec interface {
|
||||||
// Set sets v to labels.
|
// Set sets v to labels.
|
||||||
Set(v float64, labels ...string)
|
Set(v float64, labels ...string)
|
||||||
|
Loading…
Reference in New Issue
Block a user