galley-0.83.0: Conversations
Safe HaskellSafe-Inferred
LanguageGHC2021

Galley.Run

Synopsis

Documentation

run :: Opts -> IO () Source #

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