Popularity
4.0
Declining
Activity
0.0
Declining
34
2
2

Monthly Downloads: 26
Programming language: Elixir
License: MIT License

Flames alternatives and similar packages

Based on the "Errors and Exception Handling" category.
Alternatively, view Flames alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Flames or a related project?

Add another 'Errors and Exception Handling' Package

README

Flames hex.pm version Build Status

[Example Dashboard](example.png)

Installation

The package can be installed as:

  1. Add flames to your list of dependencies in mix.exs:
def deps do
  [{:flames, "~> 0.4.0"}]
end
  1. Add configuration to tell flames what your repository and (optional) Phoenix Endpoint modules are as well as adding it as a Logger backend:
config :flames,
  repo: MyPhoenixApp.Repo,
  endpoint: MyPhoenixApp.Endpoint,
  table: "errors" # Optional, defaults to "errors"

config :logger,
  backends: [:console, Flames.Logger]
  1. Add the following migration:
defmodule MyApp.Repo.Migrations.CreateFlamesTable do
  use Ecto.Migration

  def change do
    # Make sure this table name matches the above configuration
    create table(:errors) do
      add :message, :text
      add :level, :string
      add :timestamp, :datetime # or :utc_datetime if you're using the latest ecto
      add :alive, :boolean
      add :module, :string
      add :function, :string
      add :file, :string
      add :line, :integer
      add :count, :integer
      add :hash, :string

      add :incidents, :json

      timestamps
    end

    create index(:errors, [:hash])
    create index(:errors, [:updated_at])
  end
end
  1. (Optional) Add it to your Phoenix Router and Phoenix Endpoint for live updates:

Router (You should place this under a secure pipeline and secure it yourself)

forward "/errors", Flames.Web

Endpoint (Make sure this is the full path, adding /socket to the end)

socket "/errors/socket", Flames.UserSocket

Visit http://localhost:4000/errors (or wherever you mounted it) to see a live stream of errors.