# `RamoopsLogger`
[🔗](https://github.com/nerves-project/ramoops_logger/blob/v0.4.0/lib/ramoops_logger.ex#L5)

This module provides an in-memory log handler for the Erlang logger that can survive reboots.

After a reboot, you can check if a log exists by calling `available_log?/0`.

# `available_log?`

```elixir
@spec available_log?() :: boolean()
```

Check to see if there a log

# `dump`

```elixir
@spec dump() :: :ok | {:error, File.posix()}
```

Dump the contents of the ramoops pstore file to the console

# `read`

```elixir
@spec read() :: {:ok, binary()} | {:error, File.posix()}
```

Read the file contents from the ramoops pstore file. This is useful if you
want to pragmatically do something with the file contents, like post to an
external server.

# `recovered_log_path`

```elixir
@spec recovered_log_path() :: Path.t()
```

Return the path to the recovered log

The path won't exist if there was nothing to recover on boot.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
