Re: Passing arrays as parameters via log4j.xml & log4j.properties

2017-12-07 Thread Matt Sicker
lic List getValidPackages() { > return buildVersionFile;} > public void setValidPackages(List validPackages) { > this.validPackages = validPackages} > -- Matt Sicker

Re: Log4j Migration from 1.x to 2.x

2017-12-19 Thread Matt Sicker
lacement for class files like, > > > > > > org.apache.log4j.helpers.LogLog > > > org.apache.log4j.helpers.FileWatchdog > > > > > > and few more. > > > > > > I would like to know if there is any mapping documentation available > for > > > 1.x classes to 2.x classes? Please do the needful. > > > > > > Thanks, > > > Praveen Kumar > > > > > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > -- Matt Sicker

Re: Migrating from log4j1 to log4j2

2017-12-20 Thread Matt Sicker
tem.getProperty(JAVA_OPTIONS_LOG_CONFIG); > if (Strings.isNullOrEmpty(path)) { ConfigurationSource source = > ConfigurationSource.fromResource(LOG_CONFIGURATION, null); > Configurator.initialize(null, source);} else { URL in = new > URL(path); Configurator.initialize((Strin

Re: How to use slf4j with log4j2

2017-12-24 Thread Matt Sicker
a properties file. -- Matt Sicker

Re: Rendered Messages in Log4J 2

2017-12-26 Thread Matt Sicker
rs.getRendererMap().findAndRender(causeMessage); > > > > } > > > > I was not able to find the replacement classes for these objects in > Log4J2. > > > > Thanks, > > Praveen Kumar > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: [External] Re: Log4j2 Async logger fallback method

2018-01-03 Thread Matt Sicker
> >> Kind regards, > >> Christian > >> > >> > >> > >> > >> This message is for the designated recipient only and may contain > privileged, proprietary, or otherwise private information. If you have > received it in error, please notify the sender immediately and delete the > original. Any other use of the email by you is prohibited. > > > > > > > > > - > > 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 Lookup working when run on IDE but not when run in the command line

2018-01-09 Thread Matt Sicker
File=/path/to/log4j2.xml > -Dabc.home=/home/asma/abchome -jar ** > > the name of the log file getting created is ${path:key2}.log, meaning it is > not replaced by the lookup String value. What could be the reason for this? > > > > Regards, > Asma > -- Matt Sicker

Re: Setting Log4jContextSelector programmatic in Main application

2018-01-15 Thread Matt Sicker
to manually have to add this property in IDE > > or command line. Will end up with developers who might get different > > performance than our users when they develop, test and debug the > > application. > > > > > > /Sverre > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > -- Matt Sicker

[ANN] Release of Apache Chainsaw 2.0.0

2018-01-25 Thread Matt Sicker
The Apache Logging Services project is pleased to announce the availability of Apache Chainsaw 2.0.0. This is a long-awaited release of the Chainsaw trunk/master code. Apache Chainsaw is a Java GUI application to search, watch, and gather log data from applications, particularly applications using

Re: How to encode %m or %ex ?

2018-01-25 Thread Matt Sicker
how do I get Log4jServletContextListener > > >contextDestroyed to be called last. It is being called before my > > >contextDestroyed and I get no logging on shutdown. > > > > > >Cheers Greg > > > > > > > > > > > > > > > > > > This message is for the designated recipient only and may contain > privileged, proprietary, or otherwise private information. If you have > received it in error, please notify the sender immediately and delete the > original. Any other use of the email by you is prohibited. > > > > > > > - > > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > > > > > > -- Matt Sicker

Re: [External] Re: How to encode %m or %ex ?

2018-01-25 Thread Matt Sicker
JSON} notation, I only have the string "%encode" > in my logfiles and not a the encoded message field. > Do you have an idea why this happens? > > > On 25.01.18, 19:52, "Matt Sicker" wrote: > > Using %encode{%m}{JSON} will only encode the message so t

Re: [External] Re: How to encode %m or %ex ?

2018-01-26 Thread Matt Sicker
christian.froe...@accenture.com> wrote: > We are using log4j2 2.7. > It's a hybris application and packaged with ant, or what do you want to > know? > > On 25.01.18, 21:56, "Matt Sicker" wrote: > > Can you verify the version of Log4j you're using along wi

Re: Logging of logs only on demand

2018-02-05 Thread Matt Sicker
gt; > > > > > > Is there any way to make the loggings on demand? what happens is once > the service is started it logs with the change in time stamp even though > there are no any details to be logged. > > > > Log4j2.10 is been used in the project > > > > > > > > Thanks, > > > > Kavitha > -- Matt Sicker

Re: reusing a logger+appender

2018-02-07 Thread Matt Sicker
nk of a better way to do this? > > Note: I am using JSON to configure log4j2. > > Thanks, > Benjamin > -- Matt Sicker

Re: Log4j2 v2.10.0 and Java 8 support?

2018-02-20 Thread Matt Sicker
v2.9.1 or > mostly Java 9 is now targeted? And if there could be now some side effects > with Java 8 (like LOG4J2-2129) while Log4j2 code is progressing to Java 9 > modules approach? > > Thank you,Andrejus > -- Matt Sicker

Re: Log4j2 RollingFileAppender message not in order?

2018-02-20 Thread Matt Sicker
gging synchronously and want events in order, fitting in a PriorityQueue or BlockingPriorityQueue (depending on single or multi producer scenarios respectively) would be the general way to go, though it's not ideal for performance probably. -- Matt Sicker

Re: Log4j2 v2.10.0 and Java 8 support?

2018-02-21 Thread Matt Sicker
e as > toolchain for them requires JDK9. > If there is some different FAQ on building bits in addition to that > Runtime Dependencies page - please point me there. > Cheers,Andrejus > > On Tuesday, February 20, 2018 10:06 PM, Matt Sicker > wrote: > > > Log4j 2.10

Re: Log4j2 RollingFileAppender message not in order?

2018-02-21 Thread Matt Sicker
to our questions, what version of Log4j are you using? > >> Are you seeing log entries that are out of order in the same thread? > >> > >> (Shameless plug) Every java main() method deserves http://picocli.info > >> > >>> On Feb 21, 2018, at 7:15, Ma

Re: Parametrizing file names with start date of process

2018-02-26 Thread Matt Sicker
ubscr...@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: How to configure log4j2 to rollover with time stamp on startup? (OR: feature request)

2018-05-14 Thread Matt Sicker
tion, may > be found there: > https://stackoverflow.com/questions/48874164/how-to- > configure-log4j2-to-rollover-with-time-stamp-on-startup > > Thank you, > Philip > -- Matt Sicker

Re: JDK 9 no longer available for download

2018-05-23 Thread Matt Sicker
gt; > 9 > > sun > > > > > > C:\Program Files\Java\jdk-10.0.1 > > > > > > > > > > Does the build need to be updated to 10 or am I missing something? > > > -- Matt Sicker

Re: BLOCKED jstack on AsyncAppender

2018-06-01 Thread Matt Sicker
gger.logIfEnabled(java.lang.String, > org.apache.logging.log4j.Level, org.apache.logging.log4j.Marker, > java.lang.String, java.lang.Throwable) @bci=21, line=1960 (Compiled frame) > - org.apache.logging.log4j.spi.AbstractLogger.info(java.lang.String) > @bci=13, line=1297 (Compiled frame) > > Thanks > Benjamin > -- Matt Sicker

Re: [ANNOUNCE] Apache Log4j Audit 1.0.0 released

2018-06-22 Thread Matt Sicker
keys and values. The > AuditMessage passes through Log4j as any other log event would. > > > 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: > >

Re: [ANNOUNCE] Apache Log4j Audit 1.0.0 released

2018-06-22 Thread Matt Sicker
t could be. On 22 June 2018 at 10:43, Ralph Goers wrote: > I have no idea how to do a press release. Remko has done blog posts of all > the recent log4j releases. > > Ralph > > > On Jun 22, 2018, at 8:41 AM, Matt Sicker wrote: > > > > Being a 1.0 release, I think

Re: [ANNOUNCE] Apache Log4j Audit 1.0.0 released

2018-06-22 Thread Matt Sicker
h Log4j as any other log event would. > > > > > > 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: > > > > http://logging.apache.org/log4j-audit/latest/ > > -- Matt Sicker

Re: Wrong Exports and Automatic Module Name

2018-06-25 Thread Matt Sicker
R MANIFEST.MF > > exports not the API, but the implementation. > > - > 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 under OSGi application

2018-07-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 > > -- Matt Sicker

Re: log4j2 under OSGi application

2018-07-25 Thread Matt Sicker
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: log4j2 under OSGi application

2018-07-27 Thread Matt Sicker
elector > and use AsyncRoot and AsyncLogger in log4j2 configuration. In that case > only one AsyncLogger is created. > > I guess there is no way to have one AsyncLogger for the application when > using pure async logging mode under OSGi like/different classloader setup. > > On

Re: Questions about switching to async and other performance-related config

2018-08-06 Thread Matt Sicker
ging to make configurable inside Solr > itself. > > Keep in mind that Solr is using slf4j API calls, not log4j directly. > Our slf4j binding is log4j2. > > At the following pastes are an example of the logging output and the > log4j2 config that produced it: > > https://apaste.info/MqMq > https://apaste.info/tTcc > > Thanks, > Shawn > > > - > 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 example required for java enterprise application

2018-08-09 Thread Matt Sicker
prise > application consisting of Ejbs, WAR and Utility jars. I want to understand > where to place the logging jars, configuration file in a Java EE > application. Can i use a common log4j2.xml for the complete application? > > Thanks, > Raj > -- Matt Sicker

Re: Log4j2 example required for java enterprise application

2018-08-09 Thread Matt Sicker
again, redeploying the config file to N servers). On Thu, 9 Aug 2018 at 10:50, Matt Sicker wrote: > From what I remember, you can add log4j-api and log4j-core (and any other > logging bridges) to your EE server's shared lib folder (or install as a > module in JBoss for example), though if it&#x

Re: Log4j2 in web Application

2018-08-12 Thread Matt Sicker
is won't work: > > > > private static final Logger log = LogManager.getLogger(MyClass); > > > > because this cannot access the loggerContext. (That is, perhaps, > > something that log4j-web does for you. So, this still > > might be your best option.) >

Re: Get thrown_name from JSON appender in RollingRandomAccessFile appender

2018-08-13 Thread Matt Sicker
uses your personal data only in compliance with data protection > laws. For further information on how Accenture processes your personal > data, please see our privacy statement at > https://www.accenture.com/us-en/privacy-policy. > > __ > > www.accenture.com > -- Matt Sicker

Re: Log4j2 in web Application

2018-08-14 Thread Matt Sicker
technical terms like global logging configs per > application. Can you explain little more? I am curious to know about it. > > Thanks, > Raj > > On Sun, Aug 12, 2018 at 8:30 PM, Matt Sicker wrote: > > > If you're only using one log4j2 config for the whole server

Re: [External] Re: Get thrown_name from JSON appender in RollingRandomAccessFile appender

2018-08-14 Thread Matt Sicker
> > Thanks and greetings, > Christian > > On 13.08.18, 20:53, "Matt Sicker" wrote: > > Have you tried out the GELF layout? > > On Mon, 13 Aug 2018 at 11:09, Fröstl, Christian < > christian.froe...@accenture.com> wrote

Re: Log4j2 files only have 2h of data

2018-08-22 Thread Matt Sicker
(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

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: Problem with daily rotation on log4j2 RollingFile

2018-08-24 Thread Matt Sicker
sense 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
gt; >> > >> -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: Using BasicContextSelector in OSGI application

2018-10-04 Thread Matt Sicker
ngleSourcePackage.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: Using BasicContextSelector in OSGI application

2018-10-05 Thread Matt Sicker
I don’t think 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 O

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

2018-11-25 Thread Matt Sicker
> > > 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: Log4j2 Kafka application fails application startup

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

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: 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: Regarding log4j2 monitor interval

2018-12-21 Thread Matt Sicker
monitor interval unless the application is restarted. > Anyone faced this issue or can suggest any solution for this? > Thanks,Bhavesh. -- 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: 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

Re: chainsaw publish to central?

2019-02-12 Thread Matt Sicker
Ree wrote: > > 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 add

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

2019-02-12 Thread Matt Sicker
s this second configuration 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-13 Thread Matt Sicker
; (probably due to the lack 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,

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: OS

2019-04-17 Thread Matt Sicker
Apache Log4j 1.2.16 > Apache Log4j 1.2.17 > Apache Log4Cxx 0.10.0 > Apache Log4net 1.2.11.0 > Apache Log4net 1.2.12 > > Is the other version supported? > Can you tell me, thank you very much. > -- Matt Sicker --

Re: OS

2019-04-17 Thread Matt Sicker
pported 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 platfo

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

2019-04-25 Thread Matt Sicker
l/markers.html 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 config

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

2019-04-25 Thread Matt Sicker
pender. > 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,

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

2019-04-29 Thread Matt Sicker
25, 2019 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 pr

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

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

2019-05-14 Thread Matt Sicker
g4j.FileAppender > # 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 ---

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

2019-05-19 Thread Matt Sicker
diverse range of backgrounds. 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 Assista

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

2019-05-27 Thread Matt Sicker
added configs > 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

Problems using a value in a routing appender

2019-06-20 Thread Matt Sicker
uot;null", bufferedIo="null", bufferSize="null", immediateFlush="null", ignoreExceptions="null", JsonLayout(org.apache.logging.log4j.core.layout.JsonLayout@d0eda69), name="auditFile", Configuration(/Users/matt/code/audit-log-plu

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

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-13 Thread Matt Sicker
> supplier for an ObjectMapper instance from programmatic configuration. > > > > On Fri, Jul 12, 2019, at 19:10, Matt Sicker wrote: > >> And by plugin, see for example the various BlockingQueueFactory plugins. > >> > >> On Fri, Jul 12, 2019 at 18:09, Matt S

Re: How to configure ObjectMapper of Log4j2 JSON Layout

2019-07-13 Thread Matt Sicker
e newWriter 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 conf

Re: Setting logger levels not working when building with Bazel

2019-11-15 Thread Matt Sicker
gt; > > > > > > org.apache.logging.log4j.Logger logz = > > > > org.apache.logging.log4j.LogManager.getLogger(LogGrabberTest.class); > > > > org.apache.logging.log4j.LogManager.getContext(false); // just for > > > > testing > > > > > > > > org.apa

Re: Re: JDBCAppender fails to pass connection URL string

2019-12-12 Thread Matt Sicker
aSource.java:2171) > > > ... 26 more > > > > > > (Ignore below company statement) > > > > > > > > > > > > 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: Leveraging Gradle to detect invalid logging setups

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

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, Mat

Re: Log4j2 Question migration.

2020-02-18 Thread Matt Sicker
rg > > > > > > > > > > > > > > - > > 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: LogLog.setQuietMode

2020-02-19 Thread Matt Sicker
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: getAppender

2020-02-19 Thread Matt Sicker
, 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: 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: StatusLogger Urgent

2020-02-20 Thread Matt Sicker
import 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
w is it impossible 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

Re: Syslog4j

2020-02-20 Thread Matt Sicker
handling 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: > >

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

2020-02-24 Thread Matt Sicker
achments 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: 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: PatternLayout Log4j2

2020-02-27 Thread Matt Sicker
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: 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: 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: 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: log4j.configDebug in Log4j 2

2020-03-17 Thread Matt Sicker
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: 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: 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: loggerConfig.getAppenderRefs().clear()

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

Re: loggerConfig.getAppenderRefs().clear()

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

Re: Java.lang.LinkageError

2020-04-29 Thread Matt Sicker
gt; > > > > > > > > > - > > > > > 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: 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
on! > > > > 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
g4j2.disable.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 prope

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 Si

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: ConcurrentModificationException when using AsyncLogger

2020-05-23 Thread Matt Sicker
ew logs 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: OpenTelemetry appender?

2020-07-16 Thread Matt Sicker
See > 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: 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 m

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

<    1   2   3   4   5   >