Permalink
Browse files

Just simple content

  • Loading branch information...
2 parents 63b7a94 + bacc3a8 commit 6dd5e1a1a081bab7ea79cccb2b17da61a998e813 @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 6dd5e1a

Please sign in to comment.