GithubHelp home page GithubHelp logo

Log4j.properties about postmark-java HOT 6 CLOSED

corrspt avatar corrspt commented on July 29, 2024
Log4j.properties

from postmark-java.

Comments (6)

corrspt avatar corrspt commented on July 29, 2024 1

Hi Igor, thanks for pitching in.

Now that you mention that situation of other libraries, there's another issue I had while adding postmark to my app. I got the SLF4J Multiple Bindings Found warning (https://www.slf4j.org/codes.html#multiple_bindings)

I narrowed it down to the mime-util library that comes via pom.xml with Postmark

        <dependency>
            <groupId>eu.medsea.mimeutil</groupId>
            <artifactId>mime-util</artifactId>
            <version>2.1.3</version>
        </dependency>

In order to solve it I had to exclude the transitive dependency on slf4j-log4 that mime-util has:
Sample code from my build.sbt

excludeDependencies += "org.slf4j" % "slf4j-log4j12"
excludeDependencies += "org.log4j" % "log4j"

from postmark-java.

ibalosh avatar ibalosh commented on July 29, 2024

Hi

I will need to check if there is other way for silencing logs. They are probably coming from libraries being used within Postmark library (Jersey, Jackson).

Will let you know
Igor

from postmark-java.

ibalosh avatar ibalosh commented on July 29, 2024

Hey

gotcha, thanks for reporting that one. I noticed that one too for mimeutil used for easy attachments addition.

Will check that one out, with other logs

Igor

from postmark-java.

ibalosh avatar ibalosh commented on July 29, 2024

Hi

I made a change to logging so that by default it should be turned off for the library and added debug mode. The update should have been part of one other update later next month, but could not wait so released this now :)

Let me know if this will silence the loggings. By default they were set to debug mode, which explains why you saw all of them.

from postmark-java.

corrspt avatar corrspt commented on July 29, 2024

I think that did it, I've updated the library and deleted my log4.properties and logs seem to be fine. Thanks :)

from postmark-java.

ibalosh avatar ibalosh commented on July 29, 2024

Hey! nice!

you are welcome :)

Igor

from postmark-java.

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.