The logging library used by go-ipfs
It currently uses a modified version of go-logging to implement the standard printf-style log output.
go get github.com/ipfs/go-log
Once the pacakge is imported under the name logging
, an instance of EventLogger
can be created like so:
var log = logging.Logger("subsystem name")
It can then be used to emit log messages, either plain printf-style messages at six standard levels or structured messages using Event
and EventBegin
methods.
Feel free to join in. All welcome. Open an issue!
This repository falls under the IPFS Code of Conduct.
MIT