new

new(log_file=nil, level=nil)
Class Public methods

Initializes a new logger for log_file that outputs messages at level or higher. log_file can be a filename, an IO-like object that responds to or nil which outputs to $stderr.

If no level is given INFO is chosen by default

doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.