cmd: add log command

Add a log command to the common api which allows for listing all
initialized golog subsystems, and setting their log level during
runtime.

Command description also adds golog environment variable documentation.
This commit is contained in:
Travis Person
2020-02-15 06:04:55 +00:00
parent 6bf87e28e9
commit d6cf76a91a
5 changed files with 126 additions and 0 deletions
+3
View File
@@ -29,6 +29,9 @@ type Common interface {
// Version provides information about API provider
Version(context.Context) (Version, error)
LogList(context.Context) ([]string, error)
LogSetLevel(context.Context, string, string) error
}
// Version provides various build-time information