bcgov / gwa-cli

Apache License 2.0
6 stars 1 forks source link

Feature/debug output #95

Closed Jonesy closed 10 months ago

Jonesy commented 11 months ago

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'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

Checklist

Further comments