Follow this step by step guide to get 'logs' from your system to Logit.io:
Step 1 - Simple Ruby Logging
Step 2 - Check Logit.io for your logs
Now you should view your data:
If you don't see logs take a look at How to diagnose no data in Stack below for how to diagnose common issues.
Step 4 - Ruby Logging Overview
Ruby is an open sources object oriented programming language created in the mid 90s by Yukihiro Matsumoto. It is used by some of the web’s most popular sites including Shopify, Twitch, Twitter, Airbnb and Github.
Ruby is well known for being easily comprehensible and has a syntax comparable to that of C and Java, it is also equally suited for front end and back end development. Ruby also supports the majority of operating systems including Linux, Windows & Mac.
Ruby log events and errors can often be seen in two common locations, inline with the program’s execution and in separate log files in an output such as /var/log/ruby.log
Ruby log levels include the following five statuses listed in decreasing priority order; FATAL, ERROR, WARN, INFO and DEBUG
For live debugging, being able to see your errors in the program’s execution is useful but for longer term log management an external solution is required for efficient processing, parsing and reporting.
Thanks to our ELK as a Service platform, Logit.io makes parsing and managing your logs from Ruby easy and also provides actionable insights that can be used by your entire engineering and development team. Our platform is able to centralise all of your logs across numerous programming languages, tools, and cloud services that you use daily.
If you need any more assistance in analysing your Ruby logs we're here to help. Feel free to get in touch by reaching out to our support team via Intercom and we will be happy to assist.