Sha256: ee77dde1fcd8f9aec97af60f76a4a4aecfff985d4235bddb64c9862ecdf16965
Contents?: true
Size: 438 Bytes
Versions: 7
Compression:
Stored size: 438 Bytes
Contents
require "logger" require "telekinesis/logging/ruby_logger_handler" module Telekinesis module Logging java_import java.util.logging.Logger java_import java.util.logging.LogManager def self.capture_java_logging(logger) LogManager.log_manager.reset Logger.get_logger("").add_handler(RubyLoggerHandler.create(logger)) end def self.disable_java_logging LogManager.log_manager.reset end end end
Version data entries
7 entries across 7 versions & 1 rubygems