Include date in addition to time in log format

pull/1210/head
Luke Imhoff 6 years ago
parent 02bbd559d1
commit c7d614e2ec
  1. 2
      apps/block_scout_web/config/config.exs
  2. 2
      apps/ethereum_jsonrpc/config/config.exs
  3. 2
      apps/explorer/config/config.exs
  4. 2
      apps/indexer/config/config.exs
  5. 6
      config/config.exs

@ -47,7 +47,7 @@ config :ex_cldr,
config :logger, :block_scout_web,
# keep synced with `config/config.exs`
format: "$time $metadata[$level] $message\n",
format: "$dateT$time $metadata[$level] $message\n",
metadata: [:application, :request_id],
metadata_filter: [application: :block_scout_web]

@ -16,7 +16,7 @@ config :ethereum_jsonrpc, EthereumJSONRPC.Tracer,
config :logger, :ethereum_jsonrpc,
# keep synced with `config/config.exs`
format: "$time $metadata[$level] $message\n",
format: "$dateT$time $metadata[$level] $message\n",
metadata: [:application, :request_id],
metadata_filter: [application: :ethereum_jsonrpc]

@ -49,7 +49,7 @@ config :explorer,
config :logger, :explorer,
# keep synced with `config/config.exs`
format: "$time $metadata[$level] $message\n",
format: "$dateT$time $metadata[$level] $message\n",
metadata: [:application, :request_id],
metadata_filter: [application: :explorer]

@ -18,7 +18,7 @@ config :indexer, Indexer.Tracer,
config :logger, :indexer,
# keep synced with `config/config.exs`
format: "$time $metadata[$level] $message\n",
format: "$dateT$time $metadata[$level] $message\n",
metadata: [:application, :request_id],
metadata_filter: [application: :indexer]

@ -31,18 +31,18 @@ config :logger,
config :logger, :console,
# Use same format for all loggers, even though the level should only ever be `:error` for `:error` backend
format: "$time $metadata[$level] $message\n",
format: "$dateT$time $metadata[$level] $message\n",
metadata: [:application, :request_id]
config :logger, :ecto,
# Use same format for all loggers, even though the level should only ever be `:error` for `:error` backend
format: "$time $metadata[$level] $message\n",
format: "$dateT$time $metadata[$level] $message\n",
metadata: [:application, :request_id],
metadata_filter: [application: :ecto]
config :logger, :error,
# Use same format for all loggers, even though the level should only ever be `:error` for `:error` backend
format: "$time $metadata[$level] $message\n",
format: "$dateT$time $metadata[$level] $message\n",
level: :error,
metadata: [:application, :request_id]

Loading…
Cancel
Save