rlogger

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func Debug

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

func Error

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

func GetLogger

func GetLogger() *beego.BeeLogger

func Info

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

func InitLog

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

InitLog 初始化日志

func NewBeegoLogger

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

NewBeegoLogger beego

func SetTraceSpan

func SetTraceSpan(trace, span string)

func TDebug

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

func TError

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

func TInfo

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

func TWarning

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

func Warning

func Warning(format string, a ...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
}

TraceSpan A SpanID refers to a single span.

func CreateRootTrace

func CreateRootTrace() TraceSpan

func CreateTrace

func CreateTrace(trace, span string) TraceSpan

func GetTraceSpan

func GetTraceSpan() TraceSpan

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) TraceID

func (t *TraceSpanImp) TraceID() string

TraceID TraceID

Directories

Path Synopsis
Package logs provide a general log interface Usage: import "github.com/astaxie/beego/logs" 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 Copyright 2014 mqant Author.
Package logs provide a general log interface Usage: import "github.com/astaxie/beego/logs" 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 Copyright 2014 mqant Author.
es

Jump to

Keyboard shortcuts

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