log

package
v2.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Copyright 2014 mqant Author. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var (
	Err        = zap.Error
	Time       = zap.Time
	Any        = zap.Any
	Binary     = zap.Binary
	Bool       = zap.Bool
	ByteString = zap.ByteString
	Duration   = zap.Duration
	Stack      = zap.Stack
	String     = zap.String
	Strings    = zap.Strings
	Stringer   = zap.Stringer
	Uint8      = zap.Uint8
	Uint16     = zap.Uint16
	Uint32     = zap.Uint32
	Uint64     = zap.Uint64
	Uint       = zap.Uint
	Int8       = zap.Int8
	Int16      = zap.Int16
	Int32      = zap.Int32
	Int64      = zap.Int64
	Int        = zap.Int
	Float32    = zap.Float32
	Float64    = zap.Float64
)

Functions

func Debug

func Debug(msg string, fields ...zapcore.Field)

func Debugf

func Debugf(msg string, args ...interface{})

func Error

func Error(msg string, fields ...zapcore.Field)

func Errorf

func Errorf(msg string, args ...interface{})

func Fatal

func Fatal(msg string, fields ...zapcore.Field)

func Fatalf

func Fatalf(msg string, args ...interface{})

func Info

func Info(msg string, fields ...zapcore.Field)

func Infof

func Infof(msg string, args ...interface{})

func Options

func Options(opts ...zap.Option)

func TInfo

func TInfo(span TraceSpan, format string, a ...interface{})

func Warn

func Warn(msg string, fields ...zapcore.Field)

func Warnf

func Warnf(msg string, args ...interface{})

Types

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
}

A SpanID refers to a single span.

func CreateTrace

func CreateTrace(trace, span string) TraceSpan

type TraceSpanImp

type TraceSpanImp struct {
	Trace string `json:"Trace"`
	Span  string `json:"Span"`
}

func (*TraceSpanImp) ExtractSpan

func (this *TraceSpanImp) ExtractSpan() TraceSpan

func (*TraceSpanImp) SpanId

func (this *TraceSpanImp) SpanId() string

func (*TraceSpanImp) TraceId

func (this *TraceSpanImp) TraceId() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL