lib/semantic_logger/appender/file.rb
# After forking an active process call #reopen to re-open
# open the file handles etc to resources
#
# Note: This method will only work if :file_name was supplied
#       on the initializer.
#       If :io was supplied, it will need to be re-opened manually.
After forking an active process call #reopen to re-open
open the file handles etc to resources

This method will only work if :file_name was supplied
on the initializer.
If :io was supplied, it will need to be re-opened manually.
After forking an active process call #reopen to re - open open the file handles etc to resources This method will only work if : file_name was supplied on the initializer . If : io was supplied it will need to be re - opened manually .
def reopen
        return unless @file_name
        @log = open(@file_name, (::File::WRONLY | ::File::APPEND | ::File::CREAT))
        @log.sync = true
        @log.set_encoding(Encoding::BINARY) if @log.respond_to?(:set_encoding)
        @log
      end
def reopen return unless @file_name @log = open ( @file_name , ( :: File :: WRONLY | :: File :: APPEND | :: File :: CREAT ) ) @log . sync = true @log . set_encoding ( Encoding :: BINARY ) if @log . respond_to? ( :set_encoding ) @log end
After forking an active process call #reopen to re-open
open the file handles etc to resources
After forking an active process call #reopen to re - open open the file handles etc to resources
# Force all log entries to write immediately without buffering # Allows multiple processes to write to the same log file simultaneously