logger

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CtxLogger = "logger"
)

Context Key

Variables

This section is empty.

Functions

func Action

func Action(c sola.Context, v ...interface{})

Action to Logger

func New

func New(bufSize int, h Handler) sola.Middleware

New Logger

func Printf

func Printf(c sola.Context, format string, v ...interface{})

Printf to Logger

Types

type Handler

type Handler func(*Log)

Handler of Logger

type Log

type Log struct {
	IsAction   bool
	Format     string
	V          []interface{}
	CreateTime time.Time
}

Log Message

Jump to

Keyboard shortcuts

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