I generated an app with mix new evenbot --sup
Generated evenbot app
** (Mix) Could not start application evenbot: Evenbot.Application.start(:normal, []) returned an error: shutdown: failed to start child: Evenbot.Bot
** (EXIT) an exception was raised:
** (ArgumentError) errors were found at the given arguments:
* 1st argument: the table identifier does not refer to an existing ETS table
...
It was running fine, via mix run --no-halt
, until I tried to add :logger_file_backend
for locally storing the logs.
my mix.exs
defmodule Evenbot.MixProject do
use Mix.Project
def project do
[
app: :evenbot,
version: "0.1.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
applications: [:logger_file_backend, :logger],
extra_applications: [:logger],
mod: {Evenbot.Application, []}
]
end
defp deps do
[
{:ex_gram, "~> 0.26"},
{:tesla, "~> 1.4"},
{:hackney, "~> 1.12"},
{:jason, ">= 1.3.0"},
{:logger_file_backend, "~> 0.0.10"}
]
end
end
config.exs
import Config
config :logger,
backends: [{LoggerFileBackend, :debug_log}]
config :logger, :debug_log,
path: 'myLog.log',
level: :debug
I don’t understand what the error message is trying to say.