Star us on GitHub
Star
Menu

Logging without an Elixir framework

Learn how to set up highlight.io Elixir log ingestion.

1

Set up your highlight.io SDK.

First, make sure you've followed the backend getting started guide.

2

Import the Logger module.

Highlight works with the Logger module to make logging easier.

require Logger
Copy
3

Call the logging facades.

Highlight.init/0 automatically installs a logging backend, so you can call any of the Logger module's functions to emit logs.

Logger.debug("This is a debug!") Logger.info("This is an info!") Logger.notice("This is a notice!") Logger.warning("This is a warning!") Logger.error("This is an error!")
Copy
4

Verify your backend logs are being recorded.

Visit the highlight logs portal and check that backend logs are coming in.