Giter Club home page Giter Club logo

Comments (7)

4F2E4A2E avatar 4F2E4A2E commented on August 20, 2024 4

This is a very project/magician point of view of it. It makes totally sense untill it does not.
This is not the way i like to make decisions, but hey i will get into it know.
Thanks

from tess4j.

4F2E4A2E avatar 4F2E4A2E commented on August 20, 2024 2

Thank you for creating this issue, as soon as it is confirmed to be error prune after passing integration tests or in a productiv environment we will make this change happen.

Please remove the logback file from the jar and run your tests in your application.

from tess4j.

phillipjohnson avatar phillipjohnson commented on August 20, 2024 1

Any update on this? Libraries should be logging to a facade allow end-users to provide their own logging implementation. By including logback.xml in a packaged jar, you are controlling the logs of users of tess4j.

In case anyone else is looking for a workaround, the easiest I found is to pass this system property on JVM startup: -Dlogging.config=src/main/resources/logback-spring.xml. Obviously you would point to your own configuration file. If you are using spring boot, it can be as simple as:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <include resource="org/springframework/boot/logging/logback/base.xml"/>
</configuration>

from tess4j.

nguyenq avatar nguyenq commented on August 20, 2024 1

Fixed in tess4j-3.4.4 release.

from tess4j.

4F2E4A2E avatar 4F2E4A2E commented on August 20, 2024

Please remove the logback file from the jar and run your tests in your application.

did you have tried it yet? Can you confirm it?

from tess4j.

elenigen avatar elenigen commented on August 20, 2024

I'm using it in a small personal project, so I don't even have tests, but you can see other projects also had this issue:
playframework/playframework#3245
It's just not supposed to be package within libraries.
Thanks for the feedback!

from tess4j.

nguyenq avatar nguyenq commented on August 20, 2024

A fix has been committed for this: c6e5687. It'll be in the next release.

from tess4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.