jenkinsci / jenkinsci/syslog-java-client
Log4J2 Configuration is being ignored by com.cloudbees.syslog.sender.TcpSyslogMessageSender
- Dominant language
- Java
- Stars
- 91
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Description
### Jenkins and plugins versions report
Environment
```text
Paste the output here
```
### What Operating System are you using (both controller, and any agents involved in the problem)?
Hi,
We're using the syslog library through this maven dep:
```
com.cloudbees
syslog-java-client
1.1.7
com.github.spotbugs
spotbugs-annotations
```
I'm trying to filter out error log writes such as this one:
`com.cloudbees.syslog.sender.TcpSyslogMessageSender - INFO: InetAddress of the Syslog Server have changed, create a new connection. Before=null, new=XXXXXXX
`
But no matter what I add to the log4j2.xml file, this error persists. Here's log4j2 appenders:
```
```
Michael
### Reproduction steps
1. add the dep
2. set log appenders to :
```
```
3. try to send a syslog message with a faulty IP
4. see the log still writes the error
### Expected Results
No log messages when adding:
```
```
### Actual Results
Error log writes appear
### Anything else?
_No response_
### Are you interested in contributing a fix?
Sure, can do.
Contributor guide
Assessment
This issue has not been assessed yet.