Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/structy/log
A simple to use log system, minimalist but with features for debugging and differentiation of messages
https://github.com/structy/log
Last synced: about 2 months ago
JSON representation
A simple to use log system, minimalist but with features for debugging and differentiation of messages
- Host: GitHub
- URL: https://github.com/structy/log
- Owner: structy
- License: mit
- Created: 2022-01-26T20:17:37.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-27T05:03:58.000Z (almost 3 years ago)
- Last Synced: 2024-07-31T20:52:15.325Z (5 months ago)
- Language: Go
- Homepage:
- Size: 43.9 KB
- Stars: 5
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - structy/log - A simple to use log system, minimalist but with features for debugging and differentiation of messages. (Logging / Search and Analytic Databases)
- awesome-go-extra - log - 01-26T20:17:37Z|2022-01-27T05:03:58Z| (Logging / Advanced Console UIs)
README
# structy/log
[![Build Status](https://travis-ci.org/structy/log.svg?branch=master)](https://travis-ci.org/structy/log)
A simple to use log system, minimalist but with features for debugging and differentiation of messages## Example
[![Example](examples/example.png)](examples/example.go)
```go
package mainimport (
"fmt"
"github.com/structy/log"
)func main() {
log.Debugln("Debug message")log.DebugMode = false
log.Debugln("Debug message that will be hidden")log.Println("Info message")
log.Warningln("Warning message")
log.Errorln("Error message")
log.Fatal("Fatal error message")
fmt.Println("I will never be printed because of Fatal()")
}
```