Adds the ability to log to stdout when the --debug flag is added to any command. This adds 3 new global methods to log, which are just some simple syntactic sugar around Go's std.log module.
pkg.Info(msg), pkg.Warn(msg) and pkg.Error(msg) are available and will print any messages with a pre-formatted debug log. This is useful for troubleshooting with a client or during development. All the the core packages have logs added and more can written as needed (see issue checklist)
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Documentation (non-breaking change with enhancements to documentation)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
[x] I have checked that unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[x] I have added necessary documentation (if appropriate)
Fixes #94
Description
Adds the ability to log to stdout when the
--debug
flag is added to any command. This adds 3 new global methods to log, which are just some simple syntactic sugar around Go'sstd.log
module.pkg.Info(msg)
,pkg.Warn(msg)
andpkg.Error(msg)
are available and will print any messages with a pre-formatted debug log. This is useful for troubleshooting with a client or during development. All the the core packages have logs added and more can written as needed (see issue checklist)Types of changes
Checklist
Further comments