backend-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Logging.Logs

Documentation

data Source Source #

Constructors

User UserRef 
System 

Instances

Instances details
FromJSON Source Source # 
Instance details

Defined in Logging.Logs

Methods

parseJSON :: Value -> Parser Source

parseJSONList :: Value -> Parser [Source]

omittedField :: Maybe Source

ToJSON Source Source # 
Instance details

Defined in Logging.Logs

Methods

toJSON :: Source -> Value

toEncoding :: Source -> Encoding

toJSONList :: [Source] -> Value

toEncodingList :: [Source] -> Encoding

omitField :: Source -> Bool

Generic Source Source # 
Instance details

Defined in Logging.Logs

Associated Types

type Rep Source 
Instance details

Defined in Logging.Logs

type Rep Source = D1 ('MetaData "Source" "Logging.Logs" "backend-0.1.0.0-2H73EnUlGVcEtlIi2XNQz3" 'False) (C1 ('MetaCons "User" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserRef)) :+: C1 ('MetaCons "System" 'PrefixI 'False) (U1 :: Type -> Type))

Methods

from :: Source -> Rep Source x #

to :: Rep Source x -> Source #

ToSchema Source Source # 
Instance details

Defined in Logging.Logs

Methods

declareNamedSchema :: Proxy Source -> Declare (Definitions Schema) NamedSchema

type Rep Source Source # 
Instance details

Defined in Logging.Logs

type Rep Source = D1 ('MetaData "Source" "Logging.Logs" "backend-0.1.0.0-2H73EnUlGVcEtlIi2XNQz3" 'False) (C1 ('MetaCons "User" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserRef)) :+: C1 ('MetaCons "System" 'PrefixI 'False) (U1 :: Type -> Type))

data Severity Source #

Constructors

Info 
Warning 
Error 

Instances

Instances details
FromJSON Severity Source # 
Instance details

Defined in Logging.Logs

Methods

parseJSON :: Value -> Parser Severity

parseJSONList :: Value -> Parser [Severity]

omittedField :: Maybe Severity

ToJSON Severity Source # 
Instance details

Defined in Logging.Logs

Methods

toJSON :: Severity -> Value

toEncoding :: Severity -> Encoding

toJSONList :: [Severity] -> Value

toEncodingList :: [Severity] -> Encoding

omitField :: Severity -> Bool

Generic Severity Source # 
Instance details

Defined in Logging.Logs

Associated Types

type Rep Severity 
Instance details

Defined in Logging.Logs

type Rep Severity = D1 ('MetaData "Severity" "Logging.Logs" "backend-0.1.0.0-2H73EnUlGVcEtlIi2XNQz3" 'False) (C1 ('MetaCons "Info" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Warning" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Error" 'PrefixI 'False) (U1 :: Type -> Type)))

Methods

from :: Severity -> Rep Severity x #

to :: Rep Severity x -> Severity #

ToSchema Severity Source # 
Instance details

Defined in Logging.Logs

Methods

declareNamedSchema :: Proxy Severity -> Declare (Definitions Schema) NamedSchema

type Rep Severity Source # 
Instance details

Defined in Logging.Logs

type Rep Severity = D1 ('MetaData "Severity" "Logging.Logs" "backend-0.1.0.0-2H73EnUlGVcEtlIi2XNQz3" 'False) (C1 ('MetaCons "Info" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Warning" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Error" 'PrefixI 'False) (U1 :: Type -> Type)))

data LogMessage Source #

Constructors

LogMessage 

Fields

Instances

Instances details
FromJSON LogMessage Source # 
Instance details

Defined in Logging.Logs

Methods

parseJSON :: Value -> Parser LogMessage

parseJSONList :: Value -> Parser [LogMessage]

omittedField :: Maybe LogMessage

ToJSON LogMessage Source # 
Instance details

Defined in Logging.Logs

Methods

toJSON :: LogMessage -> Value

toEncoding :: LogMessage -> Encoding

toJSONList :: [LogMessage] -> Value

toEncodingList :: [LogMessage] -> Encoding

omitField :: LogMessage -> Bool

Generic LogMessage Source # 
Instance details

Defined in Logging.Logs

Associated Types

type Rep LogMessage 
Instance details

Defined in Logging.Logs

ToSchema LogMessage Source # 
Instance details

Defined in Logging.Logs

Methods

declareNamedSchema :: Proxy LogMessage -> Declare (Definitions Schema) NamedSchema

type Rep LogMessage Source # 
Instance details

Defined in Logging.Logs

data Scope Source #

Instances

Instances details
FromJSON Scope Source # 
Instance details

Defined in Logging.Scope

Methods

parseJSON :: Value -> Parser Scope

parseJSONList :: Value -> Parser [Scope]

omittedField :: Maybe Scope

ToJSON Scope Source # 
Instance details

Defined in Logging.Scope

Methods

toJSON :: Scope -> Value

toEncoding :: Scope -> Encoding

toJSONList :: [Scope] -> Value

toEncodingList :: [Scope] -> Encoding

omitField :: Scope -> Bool

ToSchema Scope Source # 
Instance details

Defined in Logging.Scope

Methods

declareNamedSchema :: Proxy Scope -> Declare (Definitions Schema) NamedSchema