https://github.com/abramisola/log
A logging library because all other logging libraries are too complicated.
https://github.com/abramisola/log
beginner-friendly golang logging
Last synced: about 2 months ago
JSON representation
A logging library because all other logging libraries are too complicated.
- Host: GitHub
- URL: https://github.com/abramisola/log
- Owner: abramisola
- License: mit
- Created: 2017-04-20T16:02:46.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-25T22:42:08.000Z (about 9 years ago)
- Last Synced: 2024-12-18T04:14:17.675Z (over 1 year ago)
- Topics: beginner-friendly, golang, logging
- Language: Go
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aisola/log
A logging library because all other logging libraries are too complicated.
[](https://godoc.org/github.com/aisola/log)
[](https://codeclimate.com/github/aisola/log)
[](https://goreportcard.com/report/github.com/aisola/log)
[](http://opensource.org/licenses/MIT)
This comes from searching around for a not complicated logging library and
running into [this article](https://dave.cheney.net/2015/11/05/lets-talk-about-logging).
This library is intended to only have two levels and be very a uncomplicated logger for
go programs.
### Warning
Like any other random code you find on the internet, this package should not be relied
upon in important, production systems without thorough testing to ensure that it meets
your needs. I wrote this for handling my simple needs and I never expect that it will
really be useful for anybody else. It has no tests, and has barely been used.
## Installing
go get -u -v github.com/aisola/log
## Example
package main
import "github.com/aisola/log"
func main() {
log.Info("The program is running")
log.Infof("This is the %s message", "2nd")
log.Debug("I'll only be written to the log if you've told the logger to.")
log.Debugf("Hello, %s!", "world")
}