log

package module
v0.0.0-...-8900b81 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2018 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

log

Build Status Build status Go Report Card

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

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

#使用方法

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

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

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

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

跨平台应用进行

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

初始化,log日志保留几天,默认不删除

func InitListner

func InitListner(str string)

监听当前线程的崩溃事件,拦截,写入日志文件

func SetSaveDays

func SetSaveDays(days int)

func Write

func Write(err error)

写入error

func WritePrintln

func WritePrintln(a ...interface{})

写入多个拼接内容

func WriteString

func WriteString(info string)

写入正常字符串

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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