zylog

module
v0.0.0-...-4235fc2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0

README

zylog

worst golang log package ever

how to use

1.first you need import this logger package,then init the tcp connection.

 logger.InitTcpConnect("127.0.0.1", "12201", 2, time.Second*1)   
 
                      //host//port//retry times//interval time 

2.set the log config

SetLogConfig("topic", "tyoe", "source_host", "version", "./fail_log_path")

3.use logger

logger.Info("string")
logger.Error(errors.new("error"))
logger.Warn("string")

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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