Re: Support of log4j2

2024-01-10 Thread Matt Sicker
Version 3 is in active development; we’re still working on several things (and a few more releases) before 3.0.0. In particular, documentation is an area that will be getting overhauled (along with migration guides and a more useful user manual), and we’re still auditing various bug fixes and

Re: Log4j module deprecation

2023-09-28 Thread Matt Sicker
* For the Cassandra appender, I’m ok with deprecation. I had added this plugin a while back partly as a demo to show how to write plugins and for some consulting-related use cases, but I haven’t used this in quite some time as I’d lean toward some form of queue middleware between logs and a

Re: Facing issue in while doing migration log4j 1.x to 2.x

2023-06-07 Thread Matt Sicker
“JMSQueue” is an alias for the “JMS” plugin. Historically, the JMSQueue and JMSTopic plugins were separate, but that was before the JMS API was updated to allow for using the same classes for queues and topics. I unified the plugins a while ago and kept the aliases in place. > On Jun 6, 2023,

Re: Plugin package scanning deprecation

2023-02-24 Thread Matt Sicker
We’re removing it in 3.0. In 3.0, plugins are instead loaded via ServiceLoader from the JDK. The annotation processor was updated to generate the service classes with the plugin metadata, though that can be created manually if necessary. This is related to supporting Java modules which don’t

Re: log4j2 API and JUL logging framework

2023-01-24 Thread Matt Sicker
That’s the log4j-to-jul module. I can’t find a link on the site, but here’s the module overview page: https://logging.apache.org/log4j/2.x/log4j-to-jul/index.html > On Jan 24, 2023, at 5:01 PM, Usha Nayak wrote: > > Hello All, > > As a library owner, if I were to use the log4j2 API and the

Re: PatternLayout Vs JsonTemplateLayout/JsonLayout Performance Comparision

2022-11-17 Thread Matt Sicker
The main purpose of the JSON encoding feature in PatternLayout is to escape quotes, backslashes, and other special characters interpreted by JSON (along with encoding characters that require encoding like newlines and certain control characters). It long predates JTL which already handles

Re: Difference between the Date lookup $${date:yyyy-MM} and the Format Specifier %d{yyyy-MM}?

2022-09-02 Thread Matt Sicker
There’s also the fact that lookups are usable in layouts that don’t reuse pattern layout components. Note that there are also differences in how objects are allocated for different plugins when GC-free logging is a concern. — Matt Sicker > On Sep 2, 2022, at 00:47, Piotr P. Karwasz wr

Re: ListAppender in parallel tests

2022-06-07 Thread Matt Sicker
Using the LoggerContextResolver extension, you can indeed get a per-test LoggerContext, but without a corresponding ContextSelector plugin to go with it, you'll have to use JUnit's parameter resolvers to get the Logger or LoggerContext rather than using LogManager. While that pattern works fine in

Re: ListAppender in parallel tests

2022-06-05 Thread Matt Sicker
on an ExtensionContext.Store, then you can parallelize things pretty efficiently. — Matt Sicker > On Jun 5, 2022, at 20:14, Björn Kautler wrote: > > Matt Sicker wrote: >> If you look at our LoggerContextResolver JUnit 5 extension >> code (more so in master than in release-2.x as the latter i

Re: ListAppender in parallel tests

2022-06-03 Thread Matt Sicker
I'd imagine that the overhead of a LoggerContext per test would be fairly low as long as you're not configuring hundreds of loggers in each test. If you look at our LoggerContextResolver JUnit 5 extension code (more so in master than in release-2.x as the latter is an older version of the former),

Re: Need help creating second, separate logger

2022-05-19 Thread Matt Sicker
You’ll need to configure a ContextSelector if you want to create more than one LoggerContext per ClassLoader as the default strategy works that way. — Matt Sicker > On May 19, 2022, at 10:57, Stephen Johns wrote: > > I am trying to create a completely separate second > Context/C

Re: ListAppender in parallel tests

2022-04-13 Thread Matt Sicker
The main reason why ListAppender doesn't support concurrent tests is essentially a chicken-or-the-egg scenario. While I'd love to be able to enable concurrent tests in log4j-core, for example, there are so many tests that aren't currently configured or written to work concurrently, nobody got

Re: can we set log4j property 'Log4jContextSelector' per webapps war

2022-04-06 Thread Matt Sicker
You could try out the JndiContextSelector for this use case as it’s all hosted in the same container server. — Matt Sicker > On Apr 6, 2022, at 08:41, Pooja Pandey wrote: > > For other 2 wars I get following harmless error when I keep > 'log4j2.component.properties' file on log4

Re: Synchronization issue in multithreading (Losing huge data in multithreading) with log4j 1.x bridge (2.17.2)

2022-03-24 Thread Matt Sicker
None of those attachments made it through to the mailing list. On Thu, Mar 24, 2022 at 6:22 PM Pooja Pandey wrote: > Attaching sample test program for simulated multithreading logging. > > > > *From:* Pooja Pandey > *Sent:* Friday, March 25, 2022 4:37 AM > *To:* Log4J Users List > *Subject:*

Re: Equivalent of SocketNode class in log4j version 2.17.1

2022-03-17 Thread Matt Sicker
You could try the syslog/RFC5424 stuff which works over a syslog socket and is supported by all existing syslog apps (like Console on macOS). See https://logging.apache.org/log4j/2.x/manual/appenders.html#SyslogAppender for more info. For more reliable networked logging, I second Ralph's

Re: How to have ThreadContext be pre-populated?

2022-03-04 Thread Matt Sicker
That's the general purpose of the ContextDataProvider extension API. See https://logging.apache.org/log4j/2.x/manual/extending.html#ContextDataProvider for basic details. On Fri, Mar 4, 2022 at 8:31 AM Gary Gregory wrote: > > An example would help... > > Gary > > On Fri, Mar 4, 2022 at 8:52 AM

Re: how to use external log4j2 property file

2022-01-05 Thread Matt Sicker
That’s a system property to set on the java command line invocation of your application. — Matt Sicker > On Jan 5, 2022, at 10:51, Jin, Ying wrote: > > Can you let me know where I should put the following property in the > application? Thanks! > > -Dlog4j2.debug=true &g

[ANNOUNCE] Apache Log4j 2.3.2 for Java 6 released

2021-12-29 Thread Matt Sicker
, patches, or suggestions for improvement, see the Apache Apache Log4j 2 website: http://logging.apache.org/log4j/2.x/ -- Matt Sicker - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail

[ANNOUNCE] Apache Log4j 2.17.1 released

2021-12-28 Thread Matt Sicker
ons on how to submit bug reports, patches, or suggestions for improvement, see the Apache Apache Log4j 2 website: https://logging.apache.org/log4j/2.x/ -- Matt Sicker PMC Member, Logging Services, Apache Software Foundation - To u

Re: [ERROR ENCOUNTERED] 1st attempt at installing and running log4j/log4shell remote command execution security vulnerability scanner developed by Adil Soybali

2021-12-17 Thread Matt Sicker
We don’t publish or develop any log4j scanners here. This is only for development of the libraries and related documentation. -- Matt Sicker > On Dec 17, 2021, at 10:38, Turritopsis Dohrnii Teo En Ming > wrote: > > Dear Matt Sticker, > > I am trying to show that I have

Re: Minimum requirements for changing log4j.properties -> log4j2.properties

2021-12-17 Thread Matt Sicker
This sounds like a bug to me. Plugin names are supposed to be case-insensitive as they already are in the other log4j2 config file formats. Can you file a Jira for this? -- Matt Sicker > On Dec 17, 2021, at 09:18, Christopher Schultz > wrote: > > Matt, > > On 12/17/21

Re: [ERROR ENCOUNTERED] 1st attempt at installing and running log4j/log4shell remote command execution security vulnerability scanner developed by Adil Soybali

2021-12-17 Thread Matt Sicker
I’m not following what the point of this email is. -- Matt Sicker - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org

Re: If JndiLookup.class is removed, and somebody attempts to trigger the exploit, what happens?

2021-12-16 Thread Matt Sicker
I'd expect the parsing to be mostly a no-op as the lookup no longer exists. Neutralized versions of the class could return an empty string which might remove the string, but it would otherwise be left intact and uninterpreted without the plugin available. On Thu, Dec 16, 2021 at 7:08 PM Shawn

Re: Minimum requirements for changing log4j.properties -> log4j2.properties

2021-12-16 Thread Matt Sicker
If you're trying to reuse config files from v1, we have an experimental feature to support those directly in v2 documented here: https://logging.apache.org/log4j/2.x/manual/compatibility.html It's experimental mostly because it doesn't support _every_ possible v1 feature, but it seems to cover

Re: CVE-2021-44228 - impact of hardening through iptables - Malicious payload still possible through DNS response?

2021-12-14 Thread Matt Sicker
JNDI supports DNS as one of its protocols, but I've never confirmed that you can load anything malicious through it. I've assumed it's possible, though. I don't know if whitelisting DNS servers is sufficient due to recursive DNS resolution in the protocol itself. On Tue, Dec 14, 2021 at 2:35 PM

Re: log4j 2.15.0 signature and sha512 hash

2021-12-13 Thread Matt Sicker
Thanks for confirming! -- Matt Sicker > On Dec 13, 2021, at 20:02, Daniel Savard wrote: > > Le lun. 13 déc. 2021 à 13:35, Daniel Savard a > écrit : > >> >> - >> Daniel Savard >> >> >> Le lun. 13 déc. 2021 à 13:28, Gary Greg

[ANNOUNCE] Apache Log4j 2.16.0 Released

2021-12-13 Thread Matt Sicker
supported by the Log4j team. For complete information on Apache Log4j 2, including instructions on how to submit bug reports, patches, or suggestions for improvement, see the Apache Apache Log4j 2 website: https://logging.apache.org/log4j/2.x/ -- Matt Sicker PMC Member, Logging Services, Apach

Re: log4j 2.15.0 signature and sha512 hash

2021-12-13 Thread Matt Sicker
Did you import the keys from our keys file? That should make the signatures authenticate. On Mon, Dec 13, 2021 at 10:52 AM Daniel Savard wrote: > > Hi everyone, > > I am trying to authenticate the log4j-2.15 code downloaded from the > apache.org site and the sha512 file doesn't contain a sha512

[ANN] Release of Apache Log4j Kotlin API 1.1.0

2021-09-12 Thread Matt Sicker
://logging.apache.org/log4j/kotlin/download.html Make sure to verify downloaded artifacts with our GPG keys found here: https://www.apache.org/dist/logging/KEYS Maven artifacts are available from Maven Central: https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-api-kotlin/1.1.0/ -- Matt

Re: Loggers with same name - how to work around?

2021-04-16 Thread Matt Sicker
You should take a look at the routing appender for supporting what you want to do. You can certainly keep the same logger name. You’d simply route log events based on other metadata. See: http://logging.apache.org/log4j/2.x/manual/appenders.html#RoutingAppender On Fri, Apr 16, 2021 at 06:35

Re: [log4j][log4j-web] Start and Stop Order?

2021-02-24 Thread Matt Sicker
https://github.com/apache/logging-log4j2/pull/463 added more to this feature. Might help fix your problem. On Wed, 24 Feb 2021 at 10:44, Gary Gregory wrote: > > On Wed, Feb 24, 2021 at 11:37 AM Matt Sicker wrote: > > > > This behavior was recently changed but not released yet.

Re: [log4j][log4j-web] Start and Stop Order?

2021-02-24 Thread Matt Sicker
This behavior was recently changed but not released yet. On Wed, 24 Feb 2021 at 10:07, Ralph Goers wrote: > > Interesting that you posted this to the user list. > > Last I checked the way the shutdown worked was very much dependent on which > servlet spec version the app is using. As I recall,

Re: Log4j2 JSON template layout help

2021-01-24 Thread Matt Sicker
For global log4j2 properties, see https://logging.apache.org/log4j/2.x/manual/configuration.html#SystemProperties You can include them in a file called log4j2.component.properties on the classpath, or you can use environment variables based on the system properties as described there. On Sun, 24

Re: Log to configure Log4j for multi-module EAR project

2021-01-08 Thread Matt Sicker
The general idea would be to tie the lifecycle of a log4j config to its underlying logical container whether that be the entire JVM (the more common use case), a war, an ejb, a rar, whatever the unit of containerization is inside the JVM. If the EE server itself is using Log4j for its logging,

Re: log4j2 performance issues with Java 11

2020-11-20 Thread Matt Sicker
s more of an initialization of a > lot of things after the application has been started, and I provide it > with login credentials (it requires a login). There is another area > where a lot of trace logging happens where I also see the performance > issue with log4j. > > Lisa

Re: Reusing a PatternLayout pattern across several config files

2020-11-20 Thread Matt Sicker
y look into > that. Good to know that wrapping like this is a known pattern. > > On 2020/11/20 14:15:53, Matt Sicker wrote: > > That plug-in wrapper pattern will always work. Maybe creating properties > to> > > reference as variables is an option? There might be a way to st

Re: log4j2 performance issues with Java 11

2020-11-20 Thread Matt Sicker
For startup time issues, there's also a Java "bug"/feature where if you don't have an /etc/hosts entry for localhost, InetAddress does a reverse name lookup on the loopback socket which ends up performing a network request on some operating systems (macOS seems to attempt an mDNS lookup of some

Re: Reusing a PatternLayout pattern across several config files

2020-11-20 Thread Matt Sicker
That plug-in wrapper pattern will always work. Maybe creating properties to reference as variables is an option? There might be a way to structure your configuration to use routing appenders or something like that to minimize duplication, too. On Fri, Nov 20, 2020 at 05:07 Stig Rohde Døssing

Re: log4j 3.0.0-SNAHSOPT disappeared

2020-11-03 Thread Matt Sicker
Oops, sent too soon. I see that’s a snapshot repo. I believe we need to run CI again since we purged some old snapshots the other day. On Tue, Nov 3, 2020 at 08:23 Matt Sicker wrote: > Snapshots aren’t meant to be in the release repository. While we do > publish snapshots in our snapshot

Re: log4j 3.0.0-SNAHSOPT disappeared

2020-11-03 Thread Matt Sicker
Snapshots aren’t meant to be in the release repository. While we do publish snapshots in our snapshots repo from CI, those aren’t releases, so we don’t directly advertise them except to users who want to test out future changes. I’m not particularly sure why you’ve chosen 3.x as that repo changes

Re: OpenTelemetry appender?

2020-07-16 Thread Matt Sicker
ee > https://www.ralphgoers.com/post/getting-the-most-out-of-the-log4j-2-api#viewer-6f2om > for an example of what I mean. > > [3] > https://github.com/open-telemetry/opentelemetry-proto/blob/master/opentelemetry/proto/trace/v1/trace.proto -- Matt Sicker ---

Re: ConcurrentModificationException when using AsyncLogger

2020-05-23 Thread Matt Sicker
ever get written to the file. > This makes this a critical error and also makes it very difficult to debug > why this error is happening to begin with. Is there a way to prevent this > from happening so that the error just gets appended to the file instead of > overwriting everything that is there? -- Matt Sicker - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org

Re: Encryption

2020-05-07 Thread Matt Sicker
gards. > //Edmondo. > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > -- Matt Sicker

Re: Java.lang.LinkageError

2020-04-29 Thread Matt Sicker
I don't know anything about log4j1 as I haven't used that for several years, sorry. On Wed, 29 Apr 2020 at 09:33, EDMONDO SENA wrote: > > Matt, last question: > > Before for log4j 1 the JMX wasn't enabled for default? > > > > On 2020/04/29 14:30:12, Matt Sicker wrote: &g

Re: Java.lang.LinkageError

2020-04-29 Thread Matt Sicker
le.jmx=true? > You think that use @PowerMockIgnore("Javax.management.* ") is useless? > > > > On 2020/04/29 13:42:02, Matt Sicker wrote: > > Sounds like you’ll need to configure PowerMock to ignore the log4j2 JMX > > classes. There’s also a system pro

Re: Java.lang.LinkageError

2020-04-29 Thread Matt Sicker
Also, if you’re trying to mock log4j2 in tests, you can always use the LoggerContextRule from our test libraries to configure logging at the test level. On Wed, Apr 29, 2020 at 08:42 Matt Sicker wrote: > Sounds like you’ll need to configure PowerMock to ignore the log4j2 JMX > classes. T

Re: Java.lang.LinkageError

2020-04-29 Thread Matt Sicker
gt; > Before we were Java 8, and Log4j and everything has worked! > > Well, now we've java 11 and Log4j 2. > > How can we fix it? > > Have you any suggest? > > > > > > > > > > On 2020/04/29 13:29:04, Matt Sicker wrote: > >

Re: Java.lang.LinkageError

2020-04-29 Thread Matt Sicker
--- > > > > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > > > > For additional commands, e-mail: > log4j-user-h...@logging.apache.org > > > > > > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: loggerConfig.getAppenderRefs().clear()

2020-03-25 Thread Matt Sicker
onal commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > >

Re: loggerConfig.getAppenderRefs().clear()

2020-03-25 Thread Matt Sicker
> > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > --

Re: setUseStructuredData log4j

2020-03-24 Thread Matt Sicker
about it? > > > > On 2020/03/24 13:46:44, Matt Sicker wrote: > > There’s an entire set of structured data classes now for further > > customization in the API. Otherwise, you want to use one of the syslog > > layouts, too. > > > > On Tue, Mar 24,

Re: setUseStructuredData log4j

2020-03-24 Thread Matt Sicker
t; > Regards. > //Edmondo. > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: log4j.configDebug in Log4j 2

2020-03-17 Thread Matt Sicker
nts to System.out. > The value of this string is log4j.configDebug. > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: is log4j-api-java9 available.

2020-02-28 Thread Matt Sicker
@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Query Regarding Log4j audit framework

2020-02-27 Thread Matt Sicker
Ah, I see what you mean. I don’t think we have any specific plugin for that, though they sound like reasonable feature requests. Could you file Jira tickets for them? On Thu, Feb 27, 2020 at 03:09 Sushil Singh wrote: > Thanks @Matt Sicker for your reply > > But 2 of my problem

Re: PatternLayout Log4j2

2020-02-27 Thread Matt Sicker
EDMONDO SENA wrote: > I saw it but not everything in that examples is clear to me... > > > > On 2020/02/27 15:33:56, Matt Sicker wrote: > > http://logging.apache.org/log4j/2.x/manual/customconfig.html > > > > > > On Thu, Feb 27, 2020 at 09:32 EDMONDO SENA wrot

Re: PatternLayout Log4j2

2020-02-27 Thread Matt Sicker
l commands, e-mail: log4j-user-h...@logging.apache.org > > >> > > >> > > > > > > - > > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > > > > > > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Query Regarding Log4j audit framework

2020-02-24 Thread Matt Sicker
here something we can use log api events to log to server also > > please let me know how these can be achieved > > Thanks, > > Sushil > > -- Matt Sicker

Re: Apache Log4j - Migration activity to 2.12.1 version - Request to support for the queries posted

2020-02-24 Thread Matt Sicker
attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > > -- Matt Sicker

Re: Syslog4j

2020-02-20 Thread Matt Sicker
ling of identity when more Appenders are used within the same VM. > We've created some methods like: > > - append(LoggingEvent...) > - initialize() for the protocol > - get() and set() SyslogHost.... > > > > On 2020/02/20 15:23:58, Matt Sicker wrote: > > What did

Re: Syslog4j

2020-02-20 Thread Matt Sicker
possible to use syslog4j with log4j 2? > > > What do you mean out of the box? > > > > > > //Edmondo. > > > > > > > > > On 2020/02/20 15:01:25, Matt Sicker wrote: > > >> I’d guess no, but Log4j2 comes with syslog appenders out of the box

Re: StatusLogger Urgent

2020-02-20 Thread Matt Sicker
t contained in log4j-1.2-api-2.13.0.jar? > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Syslog4j

2020-02-20 Thread Matt Sicker
scribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: org.apache.log4j.Category

2020-02-19 Thread Matt Sicker
additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: getAppender

2020-02-19 Thread Matt Sicker
ail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: LogLog.setQuietMode

2020-02-19 Thread Matt Sicker
e a function in log4j2 that replaced it? > > Kind regards. > //Edmondo. > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Log4j2 Question migration.

2020-02-18 Thread Matt Sicker
t; > > > > > > > > > > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Leveraging Gradle to detect invalid logging setups

2020-01-31 Thread Matt Sicker
Oh, and though I haven't used it in over a year, SBT is the build tool I'm most familiar with internals of (followed by Ant), so I don't have a real preference between Maven and Gradle (both have incomprehensible internals to me at this time). On Fri, 31 Jan 2020 at 10:31, Matt Sicker wrote

Re: Leveraging Gradle to detect invalid logging setups

2020-01-31 Thread Matt Sicker
og4J > > >>> 2 maintainers)? > > >>> > > >>> Regards, > > >>> Louis for the Gradle Dependency Management team > > >>> > > >>> [1] https://plugins.gradle.org/plugin/dev.jacomet.logging-capabilities > > >>

Re: Re: JDBCAppender fails to pass connection URL string

2019-12-12 Thread Matt Sicker
; > > > > > > > > > > Alban Hertroys > > > D: +31 (0)53 4 888 888 | T: +31 (0)53 4888 888 | E: > > > alban.hertr...@apollovredestein.com > > > Apollo Vredestein B.V.| Ir. E.L.C. Schiffstraat 370, 7547 RD Enschede, > The > > > Netherlands > > > Chamber of Commerce number: 34223268 > > > > > > > > > > > > > > > The information contained in this e-mail is intended solely for the > use of > > > the > > > individual or entity to whom it is addressed. If you are not the > intended > > > recipient, you are hereby notified that any disclosure, copying, > > > distribution > > > or action in relation to the contents of this information is strictly > > > prohibited and may be unlawful and request you to delete this message > and > > > any > > > attachments and advise the sender by return e-mail. The > confidentiality of > > > this > > > message is not warranted. Apollo Vredestein and its subsidiaries rule > out > > > any > > > and every liability resulting from this or any other electronic > > > transmission > > > > > > > > > > > > > > > > > >Please consider the environment before printing this e-mail > > > > > > > > > - > > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > > > > Alban Hertroys > D: +31 (0)53 4 888 888 | T: +31 (0)53 4888 888 | E: > alban.hertr...@apollovredestein.com > Apollo Vredestein B.V.| Ir. E.L.C. Schiffstraat 370, 7547 RD Enschede, The > Netherlands > Chamber of Commerce number: 34223268 > > > > > The information contained in this e-mail is intended solely for the use of > the > individual or entity to whom it is addressed. If you are not the intended > recipient, you are hereby notified that any disclosure, copying, > distribution > or action in relation to the contents of this information is strictly > prohibited and may be unlawful and request you to delete this message and > any > attachments and advise the sender by return e-mail. The confidentiality of > this > message is not warranted. Apollo Vredestein and its subsidiaries rule out > any > and every liability resulting from this or any other electronic > transmission > > > > > >Please consider the environment before printing this e-mail > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Setting logger levels not working when building with Bazel

2019-11-15 Thread Matt Sicker
logz = > > > > org.apache.logging.log4j.LogManager.getLogger(LogGrabberTest.class); > > > > org.apache.logging.log4j.LogManager.getContext(false); // just for > > > > testing > > > > > > > > org.apache.logging.log4j.core.config.Configurator.setLevel(LogGrabberTest.cla

Re: How to configure ObjectMapper of Log4j2 JSON Layout

2019-07-13 Thread Matt Sicker
Writer method as I describe. > > Ralph > > > On Jul 13, 2019, at 10:12 AM, Matt Sicker wrote: > > > > Being a plugin means you can inject it as a @PluginElement wherever. Plus, > > that makes it easier for users to write a custom plugin class to co

Re: How to configure ObjectMapper of Log4j2 JSON Layout

2019-07-12 Thread Matt Sicker
And by plugin, see for example the various BlockingQueueFactory plugins. On Fri, Jul 12, 2019 at 18:09, Matt Sicker wrote: > Plugin maybe? I think we could potentially extend the plugin system as a > general dependency and configuration injection system. We can make less > special cas

Re: How to configure ObjectMapper of Log4j2 JSON Layout

2019-07-12 Thread Matt Sicker
ml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:155) > > > > The error can be prevented if `Mixin`s are added to the `ObjectMapper` > > which ignore the corresponding class. > > > > The `Log4jJsonObjectMapper` is initialized in the `JacksonFactory.JSON` > > class and I currently do not see any way to somehow configure this > > ObjectMapper with additional MixIns. > > > > Hence, my question finally is: > > How can I configure Log4J’s JSON mapping to not break on such > > non-serializable log content? > > > > Thank you! > > Dominik > > > -- Matt Sicker

Problems using a value in a routing appender

2019-06-20 Thread Matt Sicker
o="null", bufferSize="null", immediateFlush="null", ignoreExceptions="null", JsonLayout(org.apache.logging.log4j.core.layout.JsonLayout@d0eda69), name="auditFile", Configuration(/Users/matt/code/audit-log-plugin/src/main/resources/lo

Re: Not able to add Appender + Logger programmatically and log

2019-05-27 Thread Matt Sicker
gs > wont work, i just get the log to Console output. > > I made up a full example including JUnit test of my work on github see: > https://github.com/stefanwendelmann/JavaLogging > > I would be very pleased if you could help me. > > Thanks in advance  > > Stefan Wendelmann > -- Matt Sicker

Fwd: Travel Assistance for ApacheCon NA Las Vegas 2019 now open.

2019-05-19 Thread Matt Sicker
kgrounds. We therefore encourage (as always) anyone thinking about sending in an application to do so ASAP. We look forward to greeting many of you in Las Vegas! Kind Regards, Gavin - (On behalf of the Travel Assistance Committee) --

Re: Redirect errors and debug to file with log4j with log4j.properties

2019-05-14 Thread Matt Sicker
; # Define the layout for file appender > log4j.appender.FILE.layout=org.apache.log4j.PatternLayout > log4j.appender.FILE.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L- > %m%n > > Could you help me? Thanks -- Matt Sicker ---

Re: How to have a separate log file for a thread and all sub threads?

2019-04-29 Thread Matt Sicker
What's not so great is that this management of the log level with a > > "post" > > > filter requires the logger to let everything through (TRACE). > > > So then methods like isDebugEnabled() will always return true. > > > > > > Anyways for my use case we'l

Re: How to have a separate log file for a thread and all sub threads?

2019-04-29 Thread Matt Sicker
019 at 9:33 AM Ralph Goers > wrote: > > > Another possibility would be to have a ThreadGroupContextSelector and then > > use a different LoggerContext and configuration for each ThreadGroup. > > However, that could get very complicated. The RoutingAppender pretty

Re: How to have a separate log file for a thread and all sub threads?

2019-04-25 Thread Matt Sicker
r. > His definition of a job is that he is creating a thread to run it and > everything under that thread should route to that Appender. So he cannot > control what logger names are used much less whether they have Markers or not. > > Ralph > > > On Apr 25, 2019, at 8:59 AM, Matt

Re: How to have a separate log file for a thread and all sub threads?

2019-04-25 Thread Matt Sicker
ml You might also be able to just use a naming scheme for your loggers that automatically makes them separately configurable as typical loggers. For example, say you use a naming scheme "com.example.threadgroup." as your loggers. Then you could configure them by nam

Re: OS

2019-04-17 Thread Matt Sicker
ed on any > platform and is known to have issues in newer versions of the JDK. Log4j 2 > is supported on any platform the JDK is supported on. > > Ralph > > > On Apr 17, 2019, at 7:34 AM, Matt Sicker wrote: > > > > Log4j is a Java library and works on any platform th

Interesting article about log aggregation

2019-02-18 Thread Matt Sicker
https://apenwarr.ca/log/20190216 Not specifically related to the logging libraries here, but this sort of approach would work with any logging library. -- Matt Sicker - To unsubscribe, e-mail: log4j-user-unsubscr

Re: chainsaw publish to central?

2019-02-13 Thread Matt Sicker
ck of parent pom resolution). The build requires mvn > site first, then mvn install? It's a bit strange but i understand why it's > there. Anyhow, I'm not complaining. I eventually got it to build and am up > and running. > > On Tue, Feb 12, 2019 at 11:25 AM Matt Sicker wrote:

Re: How to put working 2 separate log4j2 xml files within the same web app

2019-02-12 Thread Matt Sicker
on does not work: > > confirmLog = LOGGER_CONFIRM:OFF in AsyncContext@4c23524b > confirmLogClass = org.apache.logging.log4j.core.async.AsyncLogger > > > > > > Is there any way to solve this? I’m probably doing something wrong. > > > > Thanks, > > > > Joan. > -- Matt Sicker - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org

Re: chainsaw publish to central?

2019-02-12 Thread Matt Sicker
: > > Not sure if this is the right list butwould it be possible to get someone > to publish chainsaw to maven central? -- Matt Sicker - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional co

Re: On rollover, gzip and keep unzipped file

2019-01-25 Thread Matt Sicker
ke and eating it too  > > > > How can I achieve this? This would be the log4j equivalent of gzip -k > which keeps the original file. > > I want to avoid rolling over to a gzipped file, and then uncompressing > it myself. > > Or rolling over to uncompressed file and compressing it myself. > > Rather, need both files to be created by log4j > > > > Appreciate any suggestions. > > > > Thanks, > > -Sameer Pradhan > > > > > > > > > > > -- Matt Sicker

Announcing Apache Log4j Kotlin API 1.0.0

2018-12-28 Thread Matt Sicker
/log4j/log4j-api-kotlin/1.0.0/ -- Matt Sicker Assistant Secretary, Apache Software Foundation VP Logging Services, ASF - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h

Re: Regarding log4j2 monitor interval

2018-12-21 Thread Matt Sicker
less the application is restarted. > Anyone faced this issue or can suggest any solution for this? > Thanks,Bhavesh. -- Matt Sicker

Re: Problem with log4j2.configurationFile. Using log4j2.properties with custom file name.

2018-12-07 Thread Matt Sicker
e more ideas please? > > El El mié, 5 dic 2018 a las 23:28, Matt Sicker > escribió: > > > Are you including log4j-web in your war as well? > > > > On Wed, 5 Dec 2018 at 10:43, paginas wrote: > > > > > I added in my web.xml >

Re: Problem with log4j2.configurationFile. Using log4j2.properties with custom file name.

2018-12-05 Thread Matt Sicker
Class().getClassLoader().getResourceAsStream(Log4java2FileName); > >>> ConfigurationSource configuration = > newConfigurationSource(log4javaFile); > >>> Configurator.initialize(null, configuration); > >>> It not works in my project because a regret to include this code in my > InitContext (first point of code), this change only affect in some class, > not in all context. (I have different servlets in my application and there > are not affected by this change) > >>> > >>> Question: > >>> Is there an easy alternative for adjusting the > properties file? (some like slf4j configuration) > >>> > >>> I would be very grateful if you could help me because I can not find a > solution and I would like to be able to use the new log4j2. > >>> Best regards! > >> > > > > -- Matt Sicker

Re: Log4j2 Kafka application fails application startup

2018-11-26 Thread Matt Sicker
ck to. > Regards,Bhavesh. > > > -- Matt Sicker

Re: Announcement: log4j2-logstash-layout v0.15 is released

2018-11-25 Thread Matt Sicker
; I > > > have released the v0.15 of the plugin to Maven Central. This release > > ships > > > a garbage-free implementation that makes *log4j2-logstash-layout the > > > fastest and only garbage-free JSON layout* plugin out there in the > wild. > > If > > > you have a use case for JSON layout, you should definitely give > > > log4j2-logstash-layout a try. As usual, feedback is welcome. > > > > > > Cheers! > > > > > > -- Matt Sicker

Re: Using BasicContextSelector in OSGI application

2018-10-05 Thread Matt Sicker
ink that makes a difference when running in OSGi. The > problem is that core is calling API and asking it to load a core class. > Unless it has access to the class it can’t do it. In OSGi it will only have > access if log4j-core exposes it. > > Ralph > > > On Oct 4, 2018, at

Re: Using BasicContextSelector in OSGI application

2018-10-04 Thread Matt Sicker
ourcePackage.loadClass(SingleSourcePackage.java:36) > >>>> at > >>>> > >> > org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:466) > >>>> at > >>>> > >> > org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:419) > >>>> at > >>>> > >> > org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:411) > >>>> at > >>>> > >> > org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150) > >>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > >>>> > >>>> > >>>> On Fri, Sep 28, 2018 at 6:01 PM Ralph Goers < > ralph.go...@dslextreme.com > >>> > >>>> wrote: > >>>> > >>>>> All ContextSelectors are part of log4j-core, not log4j-api. > >>>>> > >>>>> Ralph > >>>>> > >>>>>> On Sep 28, 2018, at 7:59 AM, Rob Gansevles > >> wrote: > >>>>>> > >>>>>> Hi, > >>>>>> > >>>>>> I would like to use the BasicContextSelector in our OSGI application > >> so > >>>>>> have a single global log4j connfiguration as described in > >>>>>> http://logging.apache.org/log4j/2.x/manual/logsep.html > >>>>>> > >>>>>> However, BasicContextSelector lives in > >>>>>> package org.apache.logging.log4j.core.selector which does not seem > to > >> be > >>>>>> usable from log4j-api. > >>>>>> > >>>>>> This package is not imported in the manifest of log4j-api like other > >>>>>> packages (for example org.apache.logging.log4j.core.async). > >>>>>> > >>>>>> Is this missing, or am I missing something? > >>>>>> > >>>>>> I am using log4j 2.11.1 > >>>>>> > >>>>>> Regards, > >>>>>> > >>>>>> Rob > >>>>> > >>>>> > >>>>> > >>>>> - > >>>>> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > >>>>> For additional commands, e-mail: log4j-user-h...@logging.apache.org > >>>>> > >>>>> > >>> > >>> > >>> > >>> - > >>> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > >>> For additional commands, e-mail: log4j-user-h...@logging.apache.org > >>> > >>> > >> > >> > >> > >> - > >> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > >> For additional commands, e-mail: log4j-user-h...@logging.apache.org > >> > >> > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Problem with daily rotation on log4j2 RollingFile

2018-08-24 Thread Matt Sicker
t; > >> -Mensaje original- > >> De: Ralph Goers [mailto:ralph.go...@dslextreme.com] > >> Enviado el: viernes, 24 de agosto de 2018 19:24 > >> Para: Log4J Users List > >> Asunto: Re: Problem with daily rotation on log4j2 RollingFile > >> &

Re: Problem with daily rotation on log4j2 RollingFile

2018-08-24 Thread Matt Sicker
e if you're not directly quoting everything that isn't a date format character. In fact, this doesn't tell you how to even insert the pattern at all unless you find random examples of how it actually works in other parts of the manual. -- Matt Sicker

Re: Problem with daily rotation on log4j2 RollingFile

2018-08-24 Thread Matt Sicker
> But the problem is this log file has been created as 2018-08-24 instead of > 2018-08-25. > > > > These are my 2 log files: > > -rw-r-. 1 rootroot4382871 Aug 24 23:59 > vproxy_access.2018-08-22 > > -rw-r-. 1 rootroot 16224 Aug 25 00:00 > vproxy_access.2018-08-24 > > > > And this is the system date now: > > [root@server02 logs]# date > > Sat Aug 25 00:17:37 EDT 2018 > > > > > > So at this point I’m not sure if this is a bug or I simply has something > misconfigured in my log4j.xml > > > > Thanks, > > > > Joan. > > > > -- Matt Sicker

Re: Log4j2 files only have 2h of data

2018-08-22 Thread Matt Sicker
is (some of which are very busy) only the > last two hours of data are present in the current file. > > Is there some configuration item I have wrong? Or some buffering thing I > don't know about? > -- Matt Sicker

  1   2   3   4   5   >