Created
August 13, 2014 09:44
-
-
Save kidach1/b47fdede748a167d2c5d to your computer and use it in GitHub Desktop.
[Rails] 任意のファイルにアプリケーションログを吐く ref: http://qiita.com/kidachi_/items/96802ab66274779e21e0
This file contains 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
Rails.application.config.another_logger.info('bar') |
This file contains 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
Rails.logger.info('buzz') |
This file contains 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
Rails.logger.info('buzz') |
This file contains 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
config.another_logger = Logger.new(Rails.root.join('log/foo.log')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment