You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really like your module and use it a lot in my apps. Usually I'm doing very verbose logging, also in order to simplify my life as developer later on in operation.
But sometimes it is not feasible to "tell everything to everyone". I think I know how to suppress all log outputs, but I'm currently looking for an elegant way to make them disappear at all (even from binary as texts), in case I'm setting a special environment variable at build time.
My attempts to replace your module by dummies failed so far and I don't want to mess up all my code with constructs like this:
if debug {
log.Info("...")
}
Would you know an elegant but efficient way to achieve this? Silencing all logging, removing all log strings with a snip or trick?
The text was updated successfully, but these errors were encountered:
Found it. After having messed with my own pre-processor, which went through all the go files and "sed" all the log entries out I found this neat project, which is pretty much of help here: https://github.com/pijng/go-ifdef
I really like your module and use it a lot in my apps. Usually I'm doing very verbose logging, also in order to simplify my life as developer later on in operation.
But sometimes it is not feasible to "tell everything to everyone". I think I know how to suppress all log outputs, but I'm currently looking for an elegant way to make them disappear at all (even from binary as texts), in case I'm setting a special environment variable at build time.
My attempts to replace your module by dummies failed so far and I don't want to mess up all my code with constructs like this:
Would you know an elegant but efficient way to achieve this? Silencing all logging, removing all log strings with a snip or trick?
The text was updated successfully, but these errors were encountered: