Let's create a logger interface, either use some random go library or create our own.
Let's support at least the following log levels:
- TRACE
- DEBUG
- INFO
- WARN
- ERROR
- FATAL
All log messages should be outputted on standard error, NOT standard output (the reason being is that we want the output to only be the json response, most of the time so you can pipe it into jq).
Additionally, let's change the command interface to also take this logger object (See #8)
Let's create a logger interface, either use some random go library or create our own.
Let's support at least the following log levels:
All log messages should be outputted on standard error, NOT standard output (the reason being is that we want the output to only be the json response, most of the time so you can pipe it into
jq).Additionally, let's change the command interface to also take this logger object (See #8)