cardano-node-8.8.1: The cardano full node
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Node.Configuration.Logging

Synopsis

Documentation

data LoggingLayer Source #

The LoggingLayer interface that we can expose. We want to do this since we want to be able to mock out any function tied to logging.

The good side of this is that _each function has it's own effects_ and that is ideal for tracking the functions effects and constraining the user (programmer) of those function to use specific effects in them. https://github.com/input-output-hk/cardano-sl/blob/develop/util/src/Pos/Util/Log/LogSafe.hs

Constructors

LoggingLayer 

Fields

data EKGDirect Source #

Constructors

EKGDirect 

Fields

type Trace (m :: Type -> Type) a = Tracer m (LoggerName, LogObject a) #

data Severity #

Instances

Instances details
FromJSON Severity 
Instance details

Defined in Cardano.BM.Data.Severity

ToJSON Severity 
Instance details

Defined in Cardano.BM.Data.Severity

Methods

toJSON :: Severity -> Value #

toEncoding :: Severity -> Encoding #

toJSONList :: [Severity] -> Value #

toEncodingList :: [Severity] -> Encoding #

omitField :: Severity -> Bool #

Monoid Severity 
Instance details

Defined in Cardano.BM.Data.Severity

Semigroup Severity 
Instance details

Defined in Cardano.BM.Data.Severity

Bounded Severity 
Instance details

Defined in Cardano.BM.Data.Severity

Enum Severity 
Instance details

Defined in Cardano.BM.Data.Severity

Generic Severity 
Instance details

Defined in Cardano.BM.Data.Severity

Associated Types

type Rep Severity :: Type -> Type Source #

Read Severity 
Instance details

Defined in Cardano.BM.Data.Severity

Show Severity 
Instance details

Defined in Cardano.BM.Data.Severity

Eq Severity 
Instance details

Defined in Cardano.BM.Data.Severity

Ord Severity 
Instance details

Defined in Cardano.BM.Data.Severity

type Rep Severity 
Instance details

Defined in Cardano.BM.Data.Severity

type Rep Severity = D1 ('MetaData "Severity" "Cardano.BM.Data.Severity" "iohk-monitoring-0.1.11.4-9CA5Sy3R3824tximYpTEIL" 'False) (((C1 ('MetaCons "Debug" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Info" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Notice" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Warning" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Error" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Critical" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Alert" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Emergency" 'PrefixI 'False) (U1 :: Type -> Type))))

data LOMeta #

Constructors

LOMeta 

Instances

Instances details
FromJSON LOMeta 
Instance details

Defined in Cardano.BM.Data.LogItem

ToJSON LOMeta 
Instance details

Defined in Cardano.BM.Data.LogItem

Methods

toJSON :: LOMeta -> Value #

toEncoding :: LOMeta -> Encoding #

toJSONList :: [LOMeta] -> Value #

toEncodingList :: [LOMeta] -> Encoding #

omitField :: LOMeta -> Bool #

Show LOMeta 
Instance details

Defined in Cardano.BM.Data.LogItem

Eq LOMeta 
Instance details

Defined in Cardano.BM.Data.LogItem

data LOContent a #

Constructors

LogMessage a 
LogError !Text 
LogValue !Text !Measurable 
LogStructuredText Object Text 
LogStructured Object 
ObserveOpen !CounterState 
ObserveDiff !CounterState 
ObserveClose !CounterState 
AggregatedMessage [(Text, Aggregated)] 
MonitoringEffect !MonitorAction 
Command !CommandValue 
KillPill 

Instances

Instances details
FromJSON a => FromJSON (LOContent a) 
Instance details

Defined in Cardano.BM.Data.LogItem

ToJSON a => ToJSON (LOContent a) 
Instance details

Defined in Cardano.BM.Data.LogItem

Methods

toJSON :: LOContent a -> Value #

toEncoding :: LOContent a -> Encoding #

toJSONList :: [LOContent a] -> Value #

toEncodingList :: [LOContent a] -> Encoding #

omitField :: LOContent a -> Bool #

Show a => Show (LOContent a) 
Instance details

Defined in Cardano.BM.Data.LogItem

Eq a => Eq (LOContent a) 
Instance details

Defined in Cardano.BM.Data.LogItem

ToJSON a => ToObject (LOContent a) 
Instance details

Defined in Cardano.BM.Data.Tracer