Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
mkLogger :: Level -> Maybe (Last Bool) -> Maybe (Last LogFormat) -> IO Logger Source #
Creates a logger given a log format Also takes an useNetstrings argument which is there because we cannot immediatelly deprecate the old interface. Old configs only provide the useNetstrings argument and not the logFormat argument, and in that case implement the old behaviour of either enabling plain text logging or netstring logging. If both arguments are set, logFormat takes presedence over useNetstrings
FUTUREWORK: Once we get rid of the useNetstrings in our config files, we can
remove this function and rename mkLoggerNew
to mkLogger