kazu-yamamoto / logger

A fast logging system for Haskell
159 stars 68 forks source link

runFileLoggingT or runHandleLoggingT #82

Closed gbwey closed 8 years ago

gbwey commented 8 years ago

Hi,

Is there some way to use MonadLogger using a filename instead of stdout/stderr?

Thanks

snoyberg commented 8 years ago

Yes: fast-logger has functions for creating a LoggerSet from a FilePath and to send LogStrs to a LoggerSet, and monad-logger has defaultLogStr and runLoggingT. Putting them together will allow logging to a file.

gbwey commented 8 years ago

Thanks, that helped. I have it setup now.