@ -4,6 +4,11 @@ config :logger, :indexer,
level: :debug,
path: Path.absname("logs/dev/indexer.log")
config :logger, :indexer_token_balances,
path: Path.absname("logs/dev/indexer/token_balances/error.log"),
metadata_filter: [fetcher: :token_balances]
variant =
if is_nil(System.get_env("ETHEREUM_JSONRPC_VARIANT")) do
"parity"
level: :info,
path: Path.absname("logs/prod/indexer.log")
path: Path.absname("logs/prod/indexer/token_balances/error.log"),
@ -3,3 +3,8 @@ use Mix.Config
config :logger, :indexer,
level: :warn,
path: Path.absname("logs/test/indexer.log")
path: Path.absname("logs/test/indexer/token_balances/error.log"),
@ -24,7 +24,8 @@ config :logger,
# only :explorer, but all levels
{LoggerFileBackend, :explorer},
# only :indexer, but all levels
{LoggerFileBackend, :indexer}
{LoggerFileBackend, :indexer},
{LoggerFileBackend, :indexer_token_balances}
]
config :logger, :console,