Permalink
Browse files

Simple content changes in scrabook

  • Loading branch information...
1 parent 11d089b commit bacc3a8c418fcad24da3502c47c7e5f0b70ff170 @equivalent committed Mar 12, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 wisdom_inside/scraps2/rails
@@ -1,6 +1,13 @@
+# custom Logger
+ NotificationLogger = Logger.new( File.open("#{Rails.root.to_s}/log/#{Rails.env}_notifications.log", 'a') )
+ NotificationLogger.info 'Hello World!'
+you can add the first line to e.g.: `config/application.rb` and call the second line anywhere
+date: 2013-03-12
+rails: 3.2.12
+keys: custom logger logging rails log
# Rails arel

0 comments on commit bacc3a8

Please sign in to comment.