RubyFlow The Ruby and Rails community linklog

Optimise your Ruby logging with blocks

When peppering your code with logging statements, you could be adding overhead even when your application’s log level is set to display only critical errors. Switching to passing blocks to your log commands may help.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in