Method: Iyyov::LogRotator#initialize

Defined in:
lib/iyyov/log_rotator.rb

#initialize(log = nil) {|_self| ... } ⇒ LogRotator

Returns a new instance of LogRotator.

Yields:

  • (_self)

Yield Parameters:



69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/iyyov/log_rotator.rb', line 69

def initialize( log = nil )
  @log = log
  self.max_size_mb = 256
  @count = 3
  @gzip = true
  @signal = "HUP"
  @check_period = 5 * 60.0
  @pid = nil

  yield self if block_given?

  nil
end