bcc-node-1.99.0
Safe HaskellNone
LanguageHaskell2010

Bcc.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/The-Blockchain-Company/bcc-sl/blob/develop/util/src/Pos/Util/Log/LogSafe.hs

Constructors

LoggingLayer 

Fields

data EKGDirect Source #

Constructors

EKGDirect 

Fields

traceCounterTextTrace IO TextIntIO () Source #

type Trace (m ∷ TypeType) a = Tracer m (LoggerName, LogObject a) #

data Severity #

Instances

Instances details
Bounded Severity 
Instance details

Defined in Bcc.BM.Data.Severity

Enum Severity 
Instance details

Defined in Bcc.BM.Data.Severity

Eq Severity 
Instance details

Defined in Bcc.BM.Data.Severity

Ord Severity 
Instance details

Defined in Bcc.BM.Data.Severity

Read Severity 
Instance details

Defined in Bcc.BM.Data.Severity

Show Severity 
Instance details

Defined in Bcc.BM.Data.Severity

Generic Severity 
Instance details

Defined in Bcc.BM.Data.Severity

Associated Types

type Rep SeverityTypeType Source #

Semigroup Severity 
Instance details

Defined in Bcc.BM.Data.Severity

Monoid Severity 
Instance details

Defined in Bcc.BM.Data.Severity

ToJSON Severity 
Instance details

Defined in Bcc.BM.Data.Severity

Methods

toJSONSeverity → Value #

toEncodingSeverity → Encoding #

toJSONList ∷ [Severity] → Value #

toEncodingList ∷ [Severity] → Encoding #

FromJSON Severity 
Instance details

Defined in Bcc.BM.Data.Severity

Methods

parseJSON ∷ Value → Parser Severity #

parseJSONList ∷ Value → Parser [Severity] #

type Rep Severity 
Instance details

Defined in Bcc.BM.Data.Severity

type Rep Severity = D1 ('MetaData "Severity" "Bcc.BM.Data.Severity" "tbco-monitoring-0.1.10.1-ebb125f35675e653f700c515aea1d31893be8ce26c8cee60d0cb763ad926489b" 'False) (((C1 ('MetaCons "Debug" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "Info" 'PrefixI 'False) (U1TypeType)) :+: (C1 ('MetaCons "Notice" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "Warning" 'PrefixI 'False) (U1TypeType))) :+: ((C1 ('MetaCons "Error" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "Critical" 'PrefixI 'False) (U1TypeType)) :+: (C1 ('MetaCons "Alert" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "Emergency" 'PrefixI 'False) (U1TypeType))))

data LOMeta #

Constructors

LOMeta 

Instances

Instances details
Eq LOMeta 
Instance details

Defined in Bcc.BM.Data.LogItem

Methods

(==)LOMetaLOMetaBool Source #

(/=)LOMetaLOMetaBool Source #

Show LOMeta 
Instance details

Defined in Bcc.BM.Data.LogItem

ToJSON LOMeta 
Instance details

Defined in Bcc.BM.Data.LogItem

Methods

toJSONLOMeta → Value #

toEncodingLOMeta → Encoding #

toJSONList ∷ [LOMeta] → Value #

toEncodingList ∷ [LOMeta] → Encoding #

FromJSON LOMeta 
Instance details

Defined in Bcc.BM.Data.LogItem

Methods

parseJSON ∷ Value → Parser LOMeta #

parseJSONList ∷ Value → Parser [LOMeta] #

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
Eq a ⇒ Eq (LOContent a) 
Instance details

Defined in Bcc.BM.Data.LogItem

Methods

(==)LOContent a → LOContent a → Bool Source #

(/=)LOContent a → LOContent a → Bool Source #

Show a ⇒ Show (LOContent a) 
Instance details

Defined in Bcc.BM.Data.LogItem

ToJSON a ⇒ ToJSON (LOContent a) 
Instance details

Defined in Bcc.BM.Data.LogItem

Methods

toJSONLOContent a → Value #

toEncodingLOContent a → Encoding #

toJSONList ∷ [LOContent a] → Value #

toEncodingList ∷ [LOContent a] → Encoding #

FromJSON a ⇒ FromJSON (LOContent a) 
Instance details

Defined in Bcc.BM.Data.LogItem

Methods

parseJSON ∷ Value → Parser (LOContent a) #

parseJSONList ∷ Value → Parser [LOContent a] #

ToJSON a ⇒ ToObject (LOContent a) 
Instance details

Defined in Bcc.BM.Data.Tracer

Methods

toObjectTracingVerbosityLOContent a → Object #

textTransformerLOContent a → Object → Text #