Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
babarotPublic archive

About

Provides Terraform-like log system for your CLI tool

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-cli-log

GoDoc

This package provides Terraform-like log system for your CLI tool. The log level defaults to TRACE, DEBUG, INFO, WARN, ERROR.

$ go get github.com/b4b4r07/go-cli-log

Example

clilog.Env = "YOUR_APP_LOG"
clilog.SetOutput()

log.Printf("[INFO] run main function")
$ YOUR_APP_LOG=trace go run _example/main.go
2020/01/24 20:49:35 [INFO] run main function

License

MIT

About

Provides Terraform-like log system for your CLI tool

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址