Permalink
Browse files

suppress those goddamn INFO logs from pdfbox #killthemwithfire

  • Loading branch information...
Jeremy B. Merrill
Jeremy B. Merrill committed Dec 6, 2013
1 parent 7a8f4be commit 0e563d87747885dbe32250158378795c2d31aca7
Showing with 16 additions and 0 deletions.
  1. +16 −0 lib/tabula.rb
View
@@ -2,6 +2,22 @@ module Tabula
PDFBOX = 'pdfbox-app-2.0.0-SNAPSHOT.jar'
end
import 'java.util.logging.LogManager'
import 'java.util.logging.Level'
lm = LogManager.log_manager
lm.logger_names.each do |name|
if name == "" #rootlogger is apparently the logger PDFBox is talking to.
l = lm.get_logger(name)
l.level = Level::OFF
l.handlers.each do |h|
h.level = Level::OFF
end
end
end
require_relative './tabula/version'
require_relative './tabula/entities'
require_relative './tabula/pdf_dump'

0 comments on commit 0e563d8

Please sign in to comment.