Skip to content

Commit 1075f48

Browse files
GenevieveBuckleytacaswell
authored andcommitted
Java logback configuration
1 parent 4cb7fbc commit 1075f48

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pims/bioformats.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import (absolute_import, division, print_function,
22
unicode_literals)
33

4+
from turtle import pd
45
import numpy as np
56

67
from pims.base_frames import FramesSequence, FramesSequenceND
@@ -345,6 +346,10 @@ def __init__(self, filename, meta=True, java_memory='512m',
345346
jpype.startJVM(jpype.getDefaultJVMPath(), '-ea',
346347
'-Djava.class.path=' + bioformats_package_path,
347348
'-Xmx' + java_memory, **startJVM_kwargs)
349+
logback = jpype.JPackage('ch.qos.logback.classic')
350+
logger_context = logback.LoggerContext()
351+
logback.BasicConfigurator().setContext(logger_context)
352+
logback.BasicConfigurator().configure(logger_context)
348353

349354
if not jpype.isThreadAttachedToJVM():
350355
jpype.attachThreadToJVM()

0 commit comments

Comments
 (0)