git.iko.soy/typeable/control-logger
on master help sign in
Drop reopenable scribe

We don't use it anywhere, and it depends on custom fork of katip

commit6586633b090c849487ea489b8be5e8a3e09e3ce4 authorYuras Shumovich <shumovichy@gmail.com> dateWed 6 Apr 2022, 11:01 (5 years ago) parent588cf7c
2 files changed−20
control-logger.cabal−1 src/Control/Logger/Katip/Scribes/Reopenable.hs−19
control-logger.cabal−1
@@ -11,7 +11,6 @@ library
1111 if !impl(ghcjs)
1212 exposed-modules: Control.Logger
1313 Control.Logger.Katip
14− Control.Logger.Katip.Scribes.Reopenable
1514 Control.Logger.Katip.Utils
1615 Control.Logger.Orphans
1716 exposed-modules: Control.Logger.Internal
src/Control/Logger/Katip/Scribes/Reopenable.hsdeleted−19
@@ -1,19 +0,0 @@
1−module Control.Logger.Katip.Scribes.Reopenable where
2−
3−import Katip
4−import Katip.Scribes.Handle.FileOwner
5−
6−-- | Utility function to create scribe using the 'FileOwner'
7−-- inside. Returns new scribe and action to reopen the log
8−-- file. Reopening is performed asyncronously.
9−reopenableFileLog
10− :: FilePath
11− -> (forall a. LogItem a => ItemFormatter a)
12− -> PermitFunc
13− -> Verbosity
14− -> IO (Scribe, IO ())
15−reopenableFileLog fPath formatter permitF verbosity = do
16− owner <- newFileOwner fPath defaultFileOwnerSettings
17− s <- mkFileOwnerScribeWithFormatter formatter (ColorLog False)
18− owner permitF verbosity
19− return (s, fileOwnerControl owner ReopenMsg)