Posts in 2020
Find 3rd party gems global variables in ruby
Why Need Find Global Variables In rails, if you want to use puma as rails server, you need make sure your app is thread safe, not only your app code itself, also 3rd party gems should also thread safe. One of requirement for thread safe is avoid …
Rails Logger can be custom to have multiple loggers through extend(). Azure application insights can collect app’s log through trace. In this article creates a custom Rails logger and send a copy of log to Azure application insights.
Rails Logger interface Logger The Ruby Logger class provides a simple but sophisticated logging utility that you can use to output messages. Log level Logger level define as Severity . class Logger # Logging severity. # # DEBUG < INFO < WARN …