logger

package
v0.0.0-...-a101d14 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

logfilewirter.go

timewriter.go

option.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pwd

func Pwd() string

Pwd() 获取可执行程序所在路径

Types

type LogFileWrite

type LogFileWrite struct {
	// contains filtered or unexported fields
}

func NewLogFileWrite

func NewLogFileWrite(options ...OptionFn) *LogFileWrite

func (*LogFileWrite) Close

func (lwc *LogFileWrite) Close() error

func (*LogFileWrite) Write

func (lwc *LogFileWrite) Write(p []byte) (int, error)

type OptionFn

type OptionFn func(*LogFileWrite)

func WithPath

func WithPath(path string) OptionFn

func WithPreName

func WithPreName(name string) OptionFn

Jump to

Keyboard shortcuts

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