Closed karamellpelle closed 5 years ago
In such a case, you can use mempty
as the LogFunc
.
Yes, but I thought setLogSilent :: LogOptions -> LogOptions
could be more consistent with the existing functions setLogMinLevel
and logSetVerboseFormat
. rio already exposes a noLogging :: (HasLogFunc env, MonadReader env m) => m a -> m a
function.
This is just a suggestion. I do not have a strong opinion about this.
Shouldn't there be a function
setLogSilent :: LogOptions -> LogOptions
to use on theLogOptions
data? Because sometimes a (command line) program shouldn't produce output when run through a bash script, for example.