console

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package console 输出到控制台的日志

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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