Adding Logging To Your Application : logger « Development « Ruby






Adding Logging To Your Application


require 'logger'
$LOG = Logger.new($stderr)

 








Related examples in the same category

1.Keep data for the current month only
2.Keep data for today and the past 20 days.
3.Start the log over whenever the log exceeds 100 megabytes in size.