Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
The configuration for a Ribosome plugin host.
Synopsis
- data LogConfig = LogConfig {
- logFile :: Maybe (Path Abs File)
- logLevelEcho :: Severity
- logLevelStderr :: Severity
- logLevelFile :: Severity
- dataLogConc :: Bool
- newtype HostConfig = HostConfig {}
- setStderr :: Severity -> HostConfig -> HostConfig
Documentation
Logging config for a host, with different levels for Neovim echoing, stderr and file logs.
Note that stderr logging will be sent to Neovim when the plugin is running in remote mode, which will be ignored unless the plugin is started with a stderr handler.
LogConfig | |
|
Instances
Generic LogConfig Source # | |
Show LogConfig Source # | |
Default LogConfig Source # | |
Defined in Ribosome.Host.Data.HostConfig | |
Eq LogConfig Source # | |
type Rep LogConfig Source # | |
Defined in Ribosome.Host.Data.HostConfig type Rep LogConfig = D1 ('MetaData "LogConfig" "Ribosome.Host.Data.HostConfig" "ribosome-host-0.9.9.9-5mVeOZw909e7nfaEBEbC5r" 'False) (C1 ('MetaCons "LogConfig" 'PrefixI 'True) ((S1 ('MetaSel ('Just "logFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Path Abs File))) :*: S1 ('MetaSel ('Just "logLevelEcho") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Severity)) :*: (S1 ('MetaSel ('Just "logLevelStderr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Severity) :*: (S1 ('MetaSel ('Just "logLevelFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Severity) :*: S1 ('MetaSel ('Just "dataLogConc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))) |
newtype HostConfig Source #
The configuration for a host, which consists only of a LogConfig
.
Instances
Generic HostConfig Source # | |
Defined in Ribosome.Host.Data.HostConfig type Rep HostConfig :: Type -> Type # from :: HostConfig -> Rep HostConfig x # to :: Rep HostConfig x -> HostConfig # | |
Show HostConfig Source # | |
Defined in Ribosome.Host.Data.HostConfig showsPrec :: Int -> HostConfig -> ShowS # show :: HostConfig -> String # showList :: [HostConfig] -> ShowS # | |
Default HostConfig Source # | |
Defined in Ribosome.Host.Data.HostConfig def :: HostConfig # | |
Eq HostConfig Source # | |
Defined in Ribosome.Host.Data.HostConfig (==) :: HostConfig -> HostConfig -> Bool # (/=) :: HostConfig -> HostConfig -> Bool # | |
type Rep HostConfig Source # | |
Defined in Ribosome.Host.Data.HostConfig type Rep HostConfig = D1 ('MetaData "HostConfig" "Ribosome.Host.Data.HostConfig" "ribosome-host-0.9.9.9-5mVeOZw909e7nfaEBEbC5r" 'True) (C1 ('MetaCons "HostConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "hostLog") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LogConfig))) |
setStderr :: Severity -> HostConfig -> HostConfig Source #
Set the stderr level on a HostConfig
.