console

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package console 输出到控制台的日志

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPrinter added in v2.4.0

func NewPrinter() (*message.Printer, error)

func Visiter added in v2.3.0

func Visiter(next http.Handler, p *message.Printer, succ, erro *Logger) http.Handler

Types

type Logger

type Logger struct {
	colors.Colorize
	Prefix string
	Out    io.Writer
}

Logger 输出到控制台的日志

func (*Logger) AsLogger

func (msg *Logger) AsLogger() *log.Logger

func (*Logger) Printf

func (msg *Logger) Printf(format string, v ...interface{})

func (*Logger) Println

func (msg *Logger) Println(v ...interface{})

func (*Logger) Write

func (msg *Logger) Write(bs []byte) (int, error)

Jump to

Keyboard shortcuts

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