private

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Overview

Package private

Index

Constants

This section is empty.

Variables

View Source
var Log ilog

Functions

This section is empty.

Types

type DevLog added in v1.1.7

type DevLog struct {
	Color bool
	// contains filtered or unexported fields
}

func NewLogger added in v1.1.7

func NewLogger(prefix string, flag int, colored bool) *DevLog

NewLogger 新建一个内部的DevLog 日志记录默认换行 prefix 日志前缀 flag log.Flag日志标志

func (*DevLog) Error added in v1.1.7

func (d *DevLog) Error(v ...interface{})

func (*DevLog) ErrorF added in v1.1.7

func (d *DevLog) ErrorF(fmtStr string, v ...interface{})

func (*DevLog) Fatal added in v1.1.7

func (d *DevLog) Fatal(v ...interface{})

func (*DevLog) FatalF added in v1.1.7

func (d *DevLog) FatalF(fmtStr string, v ...interface{})

func (*DevLog) Info added in v1.1.7

func (d *DevLog) Info(v ...interface{})

func (*DevLog) InfoF added in v1.1.7

func (d *DevLog) InfoF(fmtStr string, v ...interface{})

func (*DevLog) Print added in v1.1.7

func (d *DevLog) Print(v ...interface{})

func (*DevLog) PrintF added in v1.1.7

func (d *DevLog) PrintF(fmtStr string, v ...interface{})

func (*DevLog) SetOutput added in v1.1.7

func (d *DevLog) SetOutput(w io.Writer)

SetOutput 设置输出的io.writer

func (*DevLog) Warn added in v1.1.7

func (d *DevLog) Warn(v ...interface{})

func (*DevLog) WarnF added in v1.1.7

func (d *DevLog) WarnF(fmtStr string, v ...interface{})

Jump to

Keyboard shortcuts

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