There's a lot of stuff happening in the background - requests being sent and services created. However, much of it happens without user knowledge and developers wanting to understand why the registrator is not working as expected are forced to add log.Println statements all over.
Using log.Debug() and optionally log.Trace() statements we can even have --verbose=1 and --verbose=2. The "lumber" framework also supports adding prefixes, which I see is done in many of the log statements already (with "registrator: " as the prefix).
There's a lot of stuff happening in the background - requests being sent and services created. However, much of it happens without user knowledge and developers wanting to understand why the registrator is not working as expected are forced to add
log.Println
statements all over.Instead, I propose a library such as jcelliott/lumber or /alexcesaro/log/stdlog for making logging at different levels.
Using
log.Debug()
and optionallylog.Trace()
statements we can even have--verbose=1
and--verbose=2
. The "lumber" framework also supports adding prefixes, which I see is done in many of the log statements already (with "registrator: " as the prefix).