graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.Server.Init.Logging

Description

Helpful functions and types for generating log statements and URIs during Options fetching and merging.

Synopsis

Documentation

censorQueryItem :: Text -> QueryItem -> QueryItem Source #

censorQuery :: Text -> Query -> Query Source #

updateQuery :: (Query -> Query) -> URI -> URI Source #

censorURI :: Text -> URI -> URI Source #

connInfoToLog :: ConnInfo -> StartupLog Source #

Generate a StartupLog from the Postgres ConnInfo.

serveOptsToLog :: ToJSON (EngineLogType impl) => ServeOptions impl -> StartupLog Source #

Generate a StartupLog from the final ServeOptions.

mkGenericLog :: ToJSON a => LogLevel -> Text -> a -> StartupLog Source #

data StartupTimeInfo Source #

Constructors

StartupTimeInfo 

Fields

Instances

Instances details
FromJSON StartupTimeInfo Source # 
Instance details

Defined in Hasura.Server.Init.Logging

Methods

parseJSON :: Value -> Parser StartupTimeInfo

parseJSONList :: Value -> Parser [StartupTimeInfo]

ToJSON StartupTimeInfo Source # 
Instance details

Defined in Hasura.Server.Init.Logging

Methods

toJSON :: StartupTimeInfo -> Value

toEncoding :: StartupTimeInfo -> Encoding

toJSONList :: [StartupTimeInfo] -> Value

toEncodingList :: [StartupTimeInfo] -> Encoding