Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Menu
Adding Logging To Your Application : logger « Development « Ruby
Ruby
Development
logger
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.