private

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Overview

Package private 默认的内置日志

由Fushin初始化 如需要引入项目全局使用请对log配置进行覆写

logger := private.NewLogger() private.Override(prefix string, flags int) logger.Info()

Package private

Index

Constants

This section is empty.

Variables

View Source
var Log ilog

Functions

func Override added in v1.1.11

func Override(prefix string, flags int)

Override 覆写log配置 如需自定义Logger请在自定义后调用覆写内部FushinLog

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