Created
January 21, 2011 02:46
-
-
Save 3dd13/789165 to your computer and use it in GitHub Desktop.
Log Rotation methods provided by Ruby Core http://ruby-doc.org/ruby-1.9/classes/Logger.html
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
def logger | |
@logger ||= Logger.new(File.new("data_loader.log"),3,5*1024*1024) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment