watch

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelFatal = iota
	LevelError
	LevelWarning
	LevelInfo
	LevelDebug
)

Variables

View Source
var (
	Output string
)

/main starts

Functions

func AppPath

func AppPath() string

AppPath 运行路径

func Autobuild

func Autobuild(files []string)

Autobuild auto build

func Debug

func Debug(s string)

func Debugf

func Debugf(format string, v ...interface{})

func Error

func Error(s string)

func Errorf

func Errorf(format string, v ...interface{})

func Fatal

func Fatal(s string)

func Fatalf

func Fatalf(format string, v ...interface{})

func FileExist

func FileExist(filename string) bool

FileExist 判断文件是否存在

func Info

func Info(s string)

func Infof

func Infof(format string, v ...interface{})

func Kill

func Kill()

Kill kill process

func New

func New() *logger

New 实例化,供外部直接调用 log.XXXX

func NewLogger

func NewLogger() *logger

NewLogger 实例化,供自定义

func NewWatcher

func NewWatcher(paths []string, files []string)

NewWatcher new watcher

func ParseConfig

func ParseConfig() *config.Config

ParseConfig 解析配置文件

func Restart

func Restart(appname string)

Restart restart app

func Run

func Run(cmd, args string)

Run 运行

func SetLogLevel

func SetLogLevel(level Level)

func Start

func Start(appname string)

Start start app

func Warn

func Warn(s string)

func Warnf

func Warnf(format string, v ...interface{})

Types

type Level

type Level int

Jump to

Keyboard shortcuts

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