log

package
v1.4.16 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package log beego日志

Package log 日志结构定义

Package log 日志初始化

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BiBeego

func BiBeego() *beegolog.BeeLogger

BiBeego BiBeego

func Close

func Close()

Close Close

func Debug

func Debug(format string, a ...interface{})

Debug Debug

func Error

func Error(format string, a ...interface{})

Error Error

func Info

func Info(format string, a ...interface{})

Info Info

func InitBI

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

InitBI 初始化BI日志

func InitLog

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

InitLog 初始化日志

func LogBeego

func LogBeego() *beegolog.BeeLogger

LogBeego LogBeego

func NewBeegoLogger

func NewBeegoLogger(debug bool, ProcessID string, Logdir string, settings map[string]interface{}) *logs.BeeLogger

NewBeegoLogger beego

func Warning

func Warning(format string, a ...interface{})

Warning Warning

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
}

TraceSpan A SpanID refers to a single span.

type TraceSpanImp

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

TraceSpanImp TraceSpanImp

func (*TraceSpanImp) ExtractSpan

func (t *TraceSpanImp) ExtractSpan() TraceSpan

ExtractSpan ExtractSpan

func (*TraceSpanImp) SpanID

func (t *TraceSpanImp) SpanID() string

SpanID SpanID

func (*TraceSpanImp) SpanId

func (t *TraceSpanImp) SpanId() string

SpanId SpanId Deprecated: 因为命名规范问题函数将废弃,请用SpanID代替

func (*TraceSpanImp) TraceID

func (t *TraceSpanImp) TraceID() string

TraceID TraceID

func (*TraceSpanImp) TraceId

func (t *TraceSpanImp) TraceId() string

TraceId TraceId Deprecated: 因为命名规范问题函数将废弃,请用TraceID代替

Directories

Path Synopsis
Package logs provide a general log interface Usage: import "github.com/tofindme/mqant/log/beego" log := NewLogger(10000) log.SetLogger("console", "") > the first params stand for how many channel Use it like this: log.Trace("trace") log.Info("info") log.Warn("warning") log.Debug("debug") log.Critical("critical") more docs http://beego.me/docs/module/logs.md
Package logs provide a general log interface Usage: import "github.com/tofindme/mqant/log/beego" log := NewLogger(10000) log.SetLogger("console", "") > the first params stand for how many channel Use it like this: log.Trace("trace") log.Info("info") log.Warn("warning") log.Debug("debug") log.Critical("critical") more docs http://beego.me/docs/module/logs.md
es

Jump to

Keyboard shortcuts

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