Star us on GitHub
Star
Menu

Logging with Other Ruby Frameworks

Learn how to set up highlight.io Ruby log ingestion.
1
Set up your frontend highlight.io integration.

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

2
Set up and call the Highlight Logger.

Highlight::Logger can be used in place of your existing logger, and will record and send logs to Highlight.

require "highlight" Highlight::H.new("<YOUR_PROJECT_ID>", environment: "production") do |c| c.service_name = "my-ruby-app" c.service_version = "git-sha" end logger = Highlight::Logger.new(STDOUT) logger.info('hello, world!') logger.error('oh no!')
Copy
3
Verify your backend logs are being recorded.

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