Skip to content

Commit fb0b988

Browse files
GenevieveBuckleytacaswell
authored andcommitted
Java logback configuration
1 parent 493295f commit fb0b988

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pims/bioformats.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from turtle import pd
12
import numpy as np
23

34
from pims.base_frames import FramesSequence, FramesSequenceND
@@ -342,6 +343,10 @@ def __init__(self, filename, meta=True, java_memory='512m',
342343
jpype.startJVM(jpype.getDefaultJVMPath(), '-ea',
343344
'-Djava.class.path=' + bioformats_package_path,
344345
'-Xmx' + java_memory, **startJVM_kwargs)
346+
logback = jpype.JPackage('ch.qos.logback.classic')
347+
logger_context = logback.LoggerContext()
348+
logback.BasicConfigurator().setContext(logger_context)
349+
logback.BasicConfigurator().configure(logger_context)
345350

346351
if not jpype.isThreadAttachedToJVM():
347352
jpype.attachThreadToJVM()

0 commit comments

Comments
 (0)