lib/bovem/logger.rb in bovem-0.8.1 vs lib/bovem/logger.rb in bovem-1.0.0
- old
+ new
@@ -11,21 +11,22 @@
mattr_accessor :start_time
# The file or device to log messages to.
attr_reader :device
- # Creates a new logger
+ # Creates a new logger.
+ #
# @see http://www.ruby-doc.org/stdlib-1.9.3/libdoc/logger/rdoc/Logger.html
#
# @param logdev [String|IO] The log device. This is a filename (String) or IO object (typically STDOUT, STDERR, or an open file).
# @param shift_age [Fixnum] Number of old log files to keep, or frequency of rotation (daily, weekly or monthly).
# @param shift_size [Fixnum] Maximum logfile size (only applies when shift_age is a number).
def initialize(logdev, shift_age = 0, shift_size = 1048576)
@device = logdev
super(logdev, shift_age, shift_size)
end
- # Creates a new logger
+ # Creates a new logger.
#
# @param file [String|IO] The log device. This is a filename (String) or IO object (typically STDOUT, STDERR, or an open file).
# @param level [Fixnum] The minimum severity to log. See http://www.ruby-doc.org/stdlib-1.9.3/libdoc/logger/rdoc/Logger.html for valid levels.
# @param formatter [Proc] The formatter to use for logging.
# @return [Logger] The new logger.
\ No newline at end of file