{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE UndecidableInstances #-}
module Navi.Data.NaviLog
( LogFile (..),
LogEnv (..),
)
where
import Effects.LoggerNamespace (Namespace)
import Navi.Prelude
data LogFile = MkLogFile
{
LogFile -> Handle
handle :: !Handle,
LogFile -> IO ()
finalizer :: IO ()
}
makeFieldLabelsNoPrefix ''LogFile
data LogEnv = MkLogEnv
{
LogEnv -> Maybe LogFile
logFile :: !(Maybe LogFile),
LogEnv -> LogLevel
logLevel :: !LogLevel,
LogEnv -> Namespace
logNamespace :: !Namespace
}
makeFieldLabelsNoPrefix ''LogEnv