Categorygithub.com/NiuStar/log
modulepackage
0.0.0-20191011094142-5c0a5ce1cd01
Repository: https://github.com/niustar/log.git
Documentation: pkg.go.dev

# README

log

Build Status Build status Go Report Card

日志系统,可以根据panic精确输出是哪行代码出错,是调试的好帮手

#新增特性: 在高并发下的多线程的日志同步,方便精确定位代码问题

#使用方法

第一步先下载代码到工程环境下

第二步在线程/进程开始的调用初始化方法:fmt.Start()

第三步,在你需要调试的地方fmt.Println("输出内容")

最后,在线程/进程开始的调用初始化方法:fmt.Over()

跨平台应用进行

# Packages

No description provided by the author
No description provided by the author

# Functions

Debug logs a message at level Debug on the standard logger.
Debugf logs a message at level Debug on the standard logger.
Debugln logs a message at level Debug on the standard logger.
Error logs a message at level Error on the standard logger.
Errorf logs a message at level Error on the standard logger.
Errorln logs a message at level Error on the standard logger.
Fatal logs a message at level Fatal on the standard logger.
Fatalf logs a message at level Fatal on the standard logger.
Fatalln logs a message at level Fatal on the standard logger.
Info logs a message at level Info on the standard logger.
Infof logs a message at level Info on the standard logger.
Infoln logs a message at level Info on the standard logger.
初始化,log日志保留几天,默认不删除.
监听当前线程的崩溃事件,拦截,写入日志文件.
Panic logs a message at level Panic on the standard logger.
Panicf logs a message at level Panic on the standard logger.
Panicln logs a message at level Panic on the standard logger.
Print logs a message at level Info on the standard logger.
Printf logs a message at level Info on the standard logger.
Println logs a message at level Info on the standard logger.
No description provided by the author
Warn logs a message at level Warn on the standard logger.
Warnf logs a message at level Warn on the standard logger.
Warning logs a message at level Warn on the standard logger.
Warningf logs a message at level Warn on the standard logger.
Warningln logs a message at level Warn on the standard logger.
Warnln logs a message at level Warn on the standard logger.