Ruby
Log Management (InsightOps) supports Logging from Ruby and Ruby on Rails applications Setup Log in to Log Management (InsightOps) and create a new log by clicking the Add New Log button. Now click the “Quick add” button. Give your log a name of your choice, select Token TCP and finally click the Create new log button. A token will be displayed in green. Please record it as we will use it later to configure the library.
Install the Library
To install the gem, edit your application Gemfile and add the following line:
sudo gem install r7insight
Create a logging object in your code
require 'r7_insight'
logger = R7Insight.new('Your log token here', 'Your region here')
Where your region is eu or us, depending on where your Log Management (InsightOps) account is based
Now add your logging code:
logger.info("info message")
logger.warn("warning message")
logger.debug("debug message")