vendor/bundle/ruby/2.6.0/gems/lumberjack-1.2.8/lib/lumberjack/device/rolling_log_file.rb
def before_flush # :nodoc:
        if @min_roll_check <= 0.0 || Time.now.to_f >= @next_stat_check
          @next_stat_check += @min_roll_check
          path_inode = begin
                         File.lstat(path).ino
                       rescue
                         nil
                       end
          if path_inode != @file_inode
            @file_inode = path_inode
            reopen_file
          elsif roll_file?
            roll_file!
          end
        end
      end
# Handle rolling the file before flushing.
Handle rolling the file before flushing.
Handle rolling the file before flushing .
def before_flush 
        if @min_roll_check <= 0.0 || Time.now.to_f >= @next_stat_check
          @next_stat_check += @min_roll_check
          path_inode = begin
                         File.lstat(path).ino
                       rescue
                         nil
                       end
          if path_inode != @file_inode
            @file_inode = path_inode
            reopen_file
          elsif roll_file?
            roll_file!
          end
        end
      end
def before_flush if @min_roll_check <= 0.0 || Time . now . to_f >= @next_stat_check @next_stat_check += @min_roll_check path_inode = begin File . lstat ( path ) . ino rescue nil end if path_inode != @file_inode @file_inode = path_inode reopen_file elsif roll_file? roll_file! end end end
Handle rolling the file before flushing.
Handle rolling the file before flushing .
# :nodoc: