Module

Logger

#emergency

emergency :: forall metadata report. MinimalMetadata metadata -> Record report -> Effect Unit

#alert

alert :: forall metadata report. MinimalMetadata metadata -> Record report -> Effect Unit

#critical

critical :: forall metadata report. MinimalMetadata metadata -> Record report -> Effect Unit

#error

error :: forall metadata report. MinimalMetadata metadata -> Record report -> Effect Unit

#warning

warning :: forall metadata report. MinimalMetadata metadata -> Record report -> Effect Unit

#notice

notice :: forall metadata report. MinimalMetadata metadata -> Record report -> Effect Unit

#info

info :: forall metadata report. MinimalMetadata metadata -> Record report -> Effect Unit

#debug

debug :: forall metadata report. MinimalMetadata metadata -> Record report -> Effect Unit

#spy

spy :: forall a. SpyWarning => String -> a -> a

#emergency'

emergency' :: forall metadata report. Location -> MinimalMetadata metadata -> Record report -> Effect Unit

#alert'

alert' :: forall metadata report. Location -> MinimalMetadata metadata -> Record report -> Effect Unit

#critical'

critical' :: forall metadata report. Location -> MinimalMetadata metadata -> Record report -> Effect Unit

#error'

error' :: forall metadata report. Location -> MinimalMetadata metadata -> Record report -> Effect Unit

#warning'

warning' :: forall metadata report. Location -> MinimalMetadata metadata -> Record report -> Effect Unit

#notice'

notice' :: forall metadata report. Location -> MinimalMetadata metadata -> Record report -> Effect Unit

#info'

info' :: forall metadata report. Location -> MinimalMetadata metadata -> Record report -> Effect Unit

#debug'

debug' :: forall metadata report. Location -> MinimalMetadata metadata -> Record report -> Effect Unit

#unsafeGetCurrentLocation

unsafeGetCurrentLocation :: Location

Get the current stack of the running process This is unsafe in the sense it is not referentially transparent, it is specifically not in Effect as the run-time stack at the time the effect is forced is not generally interesting for logging

#unsafeGetCallingLocation

#addLoggerContext

#setPrimaryLevel

#getPrimaryLevel

#setHandlerLevel

#getHandlerLevel

#commandMetadata

commandMetadata :: forall commandType. List Atom -> commandType -> String -> CommandMetadata commandType

#eventMetadata

eventMetadata :: forall eventType. List Atom -> eventType -> String -> EventMetadata eventType

#genericMetadata

genericMetadata :: forall metadata. Lacks "domain" metadata => Lacks "type" metadata => Lacks "text" metadata => List Atom -> LogType -> String -> Record metadata -> MinimalMetadata (text :: String | metadata)

#logLevelToErl

#LogType

#MinimalMetadata

type MinimalMetadata :: Row Type -> Typetype MinimalMetadata a = { domain :: List Atom, type :: LogType | a }

#BasicMetadata

#EventMetadata

type EventMetadata eventType = MinimalMetadata (event :: eventType, text :: String)

#CommandMetadata

type CommandMetadata commandType = MinimalMetadata (command :: commandType, text :: String)

#SpyWarning

class SpyWarning 

Instances

#Location

Modules