Sha256: da2c1b539bca285b108f2f7733ac2f1e31255b12c2526b7912d563696afaaa68
Contents?: true
Size: 501 Bytes
Versions: 1
Compression:
Stored size: 501 Bytes
Contents
require 'rjack-slf4j' require 'rjack-slf4j/jul' RJack::SLF4J.require_adapter( 'jul-to-slf4j' ) module RJack::SLF4J::JUL # Replace any existing configured root java.util.Logger Handlers with # the org.slf4j.bridge.SLF4JBridgeHandler def self.replace_root_handlers root_logger = root root_logger.handlers.each do |handler| root_logger.remove_handler( handler ) end handler = Java::org.slf4j.bridge.SLF4JBridgeHandler.new root_logger.add_handler( handler ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rjack-slf4j-1.5.11.0-java | lib/rjack-slf4j/jul-to-slf4j.rb |