Class: Proxy::Dynflow::Log

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_proxy_dynflow/log.rb

Defined Under Namespace

Classes: ProxyAdapter, ProxyStructuredFormater

Constant Summary collapse

LOGGER_NAME =
'dynflow-core'

Class Method Summary collapse

Class Method Details

.instanceObject



24
25
26
# File 'lib/smart_proxy_dynflow/log.rb', line 24

def instance
  ::Proxy::LogBuffer::Decorator.instance
end

.reload!Object



17
18
19
20
21
22
# File 'lib/smart_proxy_dynflow/log.rb', line 17

def reload!
  Logging.logger[LOGGER_NAME].appenders.each(&:close)
  Logging.logger[LOGGER_NAME].clear_appenders
  @logger = nil
  instance
end