log

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: Apache-2.0 Imports: 7 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.

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

This section is empty.

Functions

func Close

func Close()

func DPanicf

func DPanicf(msg string, fields ...zap.Field)

func DPanicw

func DPanicw(msg string, fields ...zap.Field)

func Debugf

func Debugf(msg string, fields ...zap.Field)

printf 风格打印

func Debugw

func Debugw(msg string, fields ...zap.Field)

key value形式打印

func Errorf

func Errorf(msg string, fields ...zap.Field)

func Errorw

func Errorw(msg string, fields ...zap.Field)

func Fatalf

func Fatalf(msg string, fields ...zap.Field)

func Fatalw

func Fatalw(msg string, fields ...zap.Field)

func Infof

func Infof(msg string, fields ...zap.Field)

func Infow

func Infow(msg string, fields ...zap.Field)

func InitLog

func InitLog(debug bool, ProcessID string, Logdir string, settings map[string]interface{})

func Panicf

func Panicf(msg string, fields ...zap.Field)

func Panicw

func Panicw(msg string, fields ...zap.Field)

func TDPanic

func TDPanic(msg string, fields ...zap.Field)

func TDebug

func TDebug(msg string, fields ...zap.Field)

func TError

func TError(msg string, fields ...zap.Field)

func TFatal

func TFatal(msg string, fields ...zap.Field)

func TInfo

func TInfo(msg string, fields ...zap.Field)

func TPanic

func TPanic(msg string, fields ...zap.Field)

func TWarn

func TWarn(msg string, fields ...zap.Field)

func Warnf

func Warnf(msg string, fields ...zap.Field)

func Warnw

func Warnw(msg string, fields ...zap.Field)

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.

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