Created
June 29, 2021 22:15
-
-
Save djberg96/d2b4a8cd38dd150bc942051f04f4aca2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Created a "logs" table and corresponding "Log" model | |
config.logger = ActiveSupport::Logger.new(STDOUT) | |
# Why does this hang? | |
config.logger.formatter = proc { |severity, timestamp, program_name, message| | |
Log.create( | |
:severity => severity, | |
:timestamp => timestamp, | |
:program_name => program_name, | |
:message => message | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment