Comments (6)
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.
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.
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.
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.
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.
Hey! nice!
you are welcome :)
Igor
from postmark-java.
Related Issues (20)
- Java 9: Illegal reflective access warning caused by JAXB dependency HOT 8
- [1.5.6] ProcessingException after upgrading from 1.5.5 to 1.5.6 HOT 10
- log4j2.properties overriding log4j2 configuration HOT 1
- Logging dependencies HOT 5
- Feature Request - support custom jackson object mapper HOT 3
- `message.addHeader` function not backwards compatible HOT 2
- Updated dependencies with high vulnerabilities HOT 1
- Allowing comma separated emails HOT 5
- HeaderValueException:Too many "Content-Type" header values: "[application/json, application/json]" HOT 13
- HeaderValueException:Too many "Content-Type" header values: "[application/json, application/json]" HOT 2
- HeaderValueException:Too many "Content-Type" header values: "[application/json, application/json] HOT 2
- Apache Tika vulnerabilities HOT 2
- Version `1.8.2` introduces `slf4j-simple` dependency HOT 2
- Upgrade Apache Tika to address vulnerability HOT 2
- Improve error handling, when HTTP status is unknown HOT 1
- Is ApiClient threadsafe? HOT 3
- Support for Jakarta EE HOT 2
- Spring Boot random "SSLException: Connection Reset" with Java 8 HOT 6
- Spring boot version 3.XX support HOT 3
- Metadata field is not present in "Bounce" class
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postmark-java.