Skip to content

Instantly share code, notes, and snippets.

@RStankov
Created November 27, 2023 10:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RStankov/67b83bb51326e47b3ea9ab6a24ffe7a1 to your computer and use it in GitHub Desktop.
Save RStankov/67b83bb51326e47b3ea9ab6a24ffe7a1 to your computer and use it in GitHub Desktop.
class Controller < ActionController::Base
include DevelopmentLogging if Rails.env.development?
end
module DevelopmentLogging
def self.included(controller)
controller.before_action :print_empty_lines_in_log
end
private
def print_empty_lines_in_log
10.times { logger.info '' }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment