class SmartProxyDynflowCore::ReopenAppender

Public Class Methods

new(name, logger, opts = {}) click to toggle source
Calls superclass method
# File lib/smart_proxy_dynflow_core/log.rb, line 5
def initialize(name, logger, opts = {})
  @reopen = false
  @logger = logger
  super(name, opts)
end

Public Instance Methods

append(_event) click to toggle source
# File lib/smart_proxy_dynflow_core/log.rb, line 15
def append(_event)
  if @reopen
    Logging.reopen
    @reopen = false
  end
end
set(status = true) click to toggle source
# File lib/smart_proxy_dynflow_core/log.rb, line 11
def set(status = true)
  @reopen = status
end