The Logback ruby gem packages the Logback java log writer, and provides a JRuby facade for programmatic Logback setup. Logback implements the SLF4J SPI packaged in the slf4j gem.


require 'rjack-logback'
RJack::Logback.config_console( :level => :info )

log = RJack::SLF4J[ "my.app.logger" ]
log.info "Hello World!"


rjack-logback gem

Copyright © 2008-2017 David Kellum

rjack-logback is free software: you can redistribute it and/or modify it under the terms of either of following licenses:

rjack-logback is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Logback (java)

Copyright © 1999-2009, QOS.ch

This program and the accompanying materials are dual-licensed under either the terms of the Eclipse Public License v1.0 as published by the Eclipse Foundation or (per the licensee's choosing) under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.