Re: Configuring log4j2 using a dynamic changing properties read from a properties file

2016-11-24 Thread Matt Sicker
error(message, null); > > } > > > > /** > >* {@inheritDoc} > >*/ > > public void error(Object message, Throwable t) { > > log.logIfEnabled(FQCN, Level.ERROR, null, message, t); > > } > > > > /** > > * {@inheritDoc} > >*/ > > public boolean isFatalEnabled() { > > return log.isFatalEnabled(); > > } > > > > > > > > > > /** > >* {@inheritDoc} > >*/ > > public void fatal(Object message, Throwable t) { > > log.logIfEnabled(FQCN, Level.FATAL, null, message, t); > > } > > > > > > /** > >* {@inheritDoc} > >*/ > > @Override > > public boolean isDebugEnabled() { > > return log.isDebugEnabled(); > > } > > > > /** > >* {@inheritDoc} > >*/ > > @Override > > public boolean isInfoEnabled() { > > return log.isInfoEnabled(); > > } > > > > > > public static Log4JTracer getTracer(Class cl) { > > return new Log4JTracer(cl); > > } > > > > > > public static Log4JTracer getTracer(String name) { > > return new Log4JTracer(name); > > } > > > > } > > > > > > Now when I try to use a logger from a class as below, It does not get > > the logger according to the config: > > > > > > > > Public class Test { > > > > > > > > Private TraceInterface trace; > > > > > > > > Public void execute() { > > > > > > > > TraceFactory.initialize("test"); > > > > trace = TraceFactory.getTracer(); > > > > trace.debug("testing.."); // this never prints. Although a test.log is > > created with zero size as soon as the TraceFactory.initialize method > > finshes. > > > > > > > > > > > > Thanks and Regards, > > > > Tarun > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Configuring log4j2 using a dynamic changing properties read from a properties file

2016-11-25 Thread Matt Sicker
racer(Class clazz) > > { > > Logger logger = LogManager.getLogger(clazz); > > log = new ExtendedLoggerWrapper((ExtendedLogger) logger, > > logger.getName(), logger.getMessageFactory()); > > } > > > > > > Regards, > > Tarun > > > > > >

Re: Configuring log4j2 using a dynamic changing properties read from a properties file

2016-11-27 Thread Matt Sicker
ers. But this will not be the case. > > So, I am going to try the other two approaches that you have suggested. > > > Best Regards, > Tarun > > -Original Message- > From: Matt Sicker [mailto:boa...@gmail.com] > Sent: Friday, November 25, 2016 10:37 PM > To: Log

Re: Switching log levels at runtime with log4j2

2016-11-28 Thread Matt Sicker
ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a= > 1935182021> > Spring Batch in Action > <https://www.amazon.com/gp/product/1935182951/ref=as_li_ > tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951& > linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B% > 7Blink_id%7D%7D%22%3ESpring+Batch+in+Action> > <http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a= > 1935182951> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > -- Matt Sicker

Re: Suggestion for docs improvement: What is a classpath?

2016-12-01 Thread Matt Sicker
t, the more users > that have energy left over to contribute back. :) > > Cheers, > Arash Rouhani > > > [1]: https://twitter.com/ArashRouhani/status/775969974397480960 > [2]: http://logging.apache.org/log4j/2.x/manual/configuration.html > -- Matt Sicker

Re: Save the date: ApacheCon Miami, May 15-19, 2017

2016-12-02 Thread Matt Sicker
and you, > and your project, can’t afford to miss it. > > -- > Rich Bowen - rbo...@apache.org > VP, Conferences > http://apachecon.com > @apachecon > > > ----- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Save the date: ApacheCon Miami, May 15-19, 2017

2016-12-03 Thread Matt Sicker
I did one there, I'd focus more on our new Scala API. On 3 December 2016 at 09:33, Apache wrote: > I will probably try to go. I haven’t made up my mind about doing a talk. > I’d be OK with you doing one. > > Ralph > > > On Dec 2, 2016, at 7:14 PM, Matt Sicker wrote: >

Re: Context-wide filter not working for me

2016-12-06 Thread Matt Sicker
sting filter, > here's my config file: > > > > > > > > > > > > > > > > > > > > > > The filter works but when I put a breakpoint inside the ThresholdFilter > class I see it doesn't stop in the method I mentioned earlier: > [image: Inline image 1] > > Am I missing something here? > > Thanks, > Guy Marom > -- Matt Sicker

Re: Reconnect JMSAppender after broker restart

2017-01-04 Thread Matt Sicker
Manager.java:120) > >at > org.apache.logging.log4j.core.appender.mom.JmsAppender. > append(JmsAppender.java:62) > >... 12 more > > > > My Log4J2.xml properties file: > > destinationBindingName="dev.logging" > factoryName="org.apache.activemq.jndi.ActiveMQInitialContextFactory" > factoryBindingName="ConnectionFactory" > providerURL="tcp://:61616?initialReconnectDelay= > 1,maxReconnectAttempts=10" > userName="log" > password="log"> > > > > > > Thank you for your time. > Paul > -- Matt Sicker

[ANN] Log4j 2.8 released

2017-01-27 Thread Matt Sicker
Maven groupId have been changed to org.apache.logging.log4j to avoid any conflicts with log4j 1.x. 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

Re: 2.8.1 release

2017-02-07 Thread Matt Sicker
Amtsgericht Dortmund, HRB 20621 > Vorstand: Jens Wagener (Vors.), Wolfgang Neuhaus > Aufsichtsrat: Dr. Burkhard Igel (Vors.), Michael Neuhaus, Jennifer > Fiorentino > -- Matt Sicker

Re: CPU Utilization: log4j 2.6 and great

2017-02-13 Thread Matt Sicker
tal One. The > information > > transmitted herewith is intended only for use by the individual or entity > > to which it is addressed. If the reader of this message is not the > intended > > recipient, you are hereby notified that any review, retransmission, > > dissemination, distribution, copying or other use of, or taking of any > > action in reliance upon this information is strictly prohibited. If you > > have received this communication in error, please contact the sender and > > delete the material from your computer. > > > -- Matt Sicker

Re: CPU Utilization: log4j 2.6 and great

2017-02-13 Thread Matt Sicker
gt; > Here’s our layout pattern: > >[%t] %d{DATE} %-5p %-15c{1} [%X]: %cm%n > > Please not the %cm is a custom message handler that we use to use to > handle security filtering of the message payload aka we extend from > LogEventPatternConverte

Re: CPU Utilization: log4j 2.6 and great

2017-02-13 Thread Matt Sicker
expensive. > >> > >>Ralph > >> > >>> On Feb 13, 2017, at 10:58 AM, DiFrango, Ronald < > ronald.difra...@capitalone.com> wrote: > >>> > >>> No we are not and since it’s a log.debug() it should just get dropped > on the floor before an

Re: SMTP appender and TLS

2017-02-21 Thread Matt Sicker
ing.apache.org/log4j/2.x/manual/appenders.html#SMTPAppender > > Thanks > Benjamin > -- Matt Sicker

Re: Using API to set filter on Logger - is ignored by code path Logger.isEnabled() ?

2017-02-23 Thread Matt Sicker
r > >>>>> > >>>>> P.S., here's the API call I did to set a filter: > >>>>> > >>>>> // coreLogger is a cast of a normal logger, to enable the get() > method > >>>>> coreLogger.get().addFilter(myFilter); > >>>>> > >>>>> // not sure if this is needed, but did it anyways > >>>>> coreLogger.getContext().updateLoggers(); > >>>>> > >>>>> > >>>>> > >>>>> > - > >>>>> 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 > <mailto:log4j-user-unsubscr...@logging.apache.org> > >>> For additional commands, e-mail: log4j-user-h...@logging.apache.org > <mailto: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 API to set filter on Logger - is ignored by code path Logger.isEnabled() ?

2017-02-23 Thread Matt Sicker
the change I did that was recorded in the > field > >>>>>> "loggerConfig" into the config stored in the field "config"? > >>>>>> > >>>>>> -Marshall Schor > >>>>>> > >>>>>> P.S., here's the API call I did to set a filter: > >>>>>> > >>>>>> // coreLogger is a cast of a normal logger, to enable the get() > method > >>>>>> coreLogger.get().addFilter(myFilter); > >>>>>> > >>>>>> // not sure if this is needed, but did it anyways > >>>>>> coreLogger.getContext().updateLoggers(); > >>>>>> > >>>>>> > >>>>>> > >>>>>> > - > >>>>>> 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 > <mailto:log4j-user-unsubscr...@logging.apache.org> > >>>> For additional commands, e-mail: log4j-user-h...@logging.apache.org > <mailto: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 API to set filter on Logger - is ignored by code path Logger.isEnabled() ?

2017-02-23 Thread Matt Sicker
s now much better > than it was. > > Ralph > > > On Feb 23, 2017, at 8:33 PM, Matt Sicker wrote: > > > > That's good to hear! A lot of people still use SLF4J with Log4j 2, so > > anything that makes them more performant is a nice bonus. > > > &g

Re: Using API to set filter on Logger - is ignored by code path Logger.isEnabled() ?

2017-02-23 Thread Matt Sicker
; much better. > > > > Ralph > > > >> On Feb 23, 2017, at 8:54 PM, Matt Sicker wrote: > >> > >> I haven't used markers much, but I've finally figured out an interesting > >> use case for them at work: marking log messages to filter th

Re: SocketAppender application name

2017-02-24 Thread Matt Sicker
.2.15 > """ > > Now, I've looked all over the code and I can't figure out what system > property it is referring to. > > Does anybody know? Thanks. > > -- > Christopher > -- Matt Sicker

Re: 2.8.1 release and LOG4J2-1804

2017-02-26 Thread Matt Sicker
t > > >> does not prepend the '%i' with a dash. > > >> > > >> Anyway, I hope it's not our of the question for you guys to be able to > > kick > > >> out a version within like a week or so, > > >> but if that is not the case just let us know. > > >> > > >> Appreciate your work, > > >> Shlomi > > > > > > > > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > -- Matt Sicker

Re: Profile controlled filtering

2017-02-27 Thread Matt Sicker
> > > > > > > > -- > > Stefan Mahler http://www.icongmbh.de > > Application Development > > icon Systemhaus GmbHTel. +49 711 806098-167 > > Hauptstätter Straße 70 > > 70178 Stuttgart Fax. +49 711 806098-299 > > > > > > Geschäftsführer: Uwe Seltmann, Andreas Schwegler > > HRB Stuttgart 17655 > > USt-IdNr.: DE 811944121 > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > -- Matt Sicker

Re: [ANNOUNCEMENT] Apache Log4j 2.8.1 released

2017-03-03 Thread Matt Sicker
;>Update Jackson from 2.8.5 to 2.8.6. >> >> ------ >> >> Apache Log4j 2.8.1 requires a minimum of Java 7 to build and run. Log4j >> 2.3 was the last release that supported Java 6. >> >> Basic compatibility with Log4j 1.x is provided through the log4j-1.2-api >> component, however it does not implement some of the very implementation >> specific classes and methods. The package names and Maven groupId have been >> changed to org.apache.logging.log4j to avoid any conflicts with log4j 1.x. >> >> 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

Re: EDT Transition?

2017-03-13 Thread Matt Sicker
king of any > action in reliance upon this information is strictly prohibited. If you > have received this communication in error, please contact the sender and > delete the material from your computer. > -- Matt Sicker

Re: using log4j in classloaders and JMX

2017-03-13 Thread Matt Sicker
t; Mihalache Blvd. Tower Center Building, 4th,5th,6th,8th,9th fl > RO-011171 Bucharest (RO), Romania > T +40 21 336 20 65 > WWW.CEGEKA.COM<http://www.cegeka.com> [LinkedIn] < > https://www.linkedin.com/company/cegeka-romania> > > > -- Matt Sicker

Re: log4j2 issue

2017-03-14 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: Is it possible to add a new Logger at runtime via JMX?

2017-03-14 Thread Matt Sicker
t; Mihalache Blvd. Tower Center Building, 4th,5th,6th,8th,9th fl > RO-011171 Bucharest (RO), Romania > T +40 21 336 20 65 > WWW.CEGEKA.COM<http://www.cegeka.com> [LinkedIn] < > https://www.linkedin.com/company/cegeka-romania> > > > -- Matt Sicker

Re: LogManager.resetConfiguration in log4j2

2017-03-14 Thread Matt Sicker
ontext.html On 14 March 2017 at 20:53, kriegerd wrote: > Hi, > > Is there a way to emulate the behavior of LogManager.resetConfiguration in > log4j2? > > We need to migrate the functionality of an older class that uses it. > Thanks! > > Alejandro. > -- Matt Sicker

Re: LogManager.resetConfiguration in log4j2

2017-03-14 Thread Matt Sicker
2017 at 22:28, Matt Sicker wrote: > I'm not exactly sure what that's supposed to do, but if you cast the > LoggerContext from LogManager.getContext() to the implementation class in > log4j-core, there's a reconfigure() method. > > https://logging.apache.org/log4j/2

Re: LogManager.resetConfiguration in log4j2

2017-03-15 Thread Matt Sicker
. On 15 March 2017 at 00:34, Ralph Goers wrote: > Actually, the equivalent would be set the configuration back to the > DefaultConfiguratoin, not a null configuration. > > Ralph > > > On Mar 14, 2017, at 9:09 PM, Matt Sicker wrote: > > > > After lo

Re: log4j2 issue

2017-03-17 Thread Matt Sicker
ential Information may be contained in this > message. If you are not the addressee indicated in this message > (or responsible for delivery of the message to such a person), you may not > copy or deliver this message to anyone. In such case, > you should destroy this message and kindly notify the sender by reply > email. > -- Matt Sicker

Re: 答复: log4j2 issue

2017-03-20 Thread Matt Sicker
uot; or so millis. On 20 March 2017 at 03:29, Yang Rui wrote: > Hi,Matt Sicker > > I used FailOverAppender, but I found that in the moment kafka down, the > data was lost. > > What kind of measures can be taken to avoid this situation > >

Re: 答复: 答复: log4j2 issue

2017-03-21 Thread Matt Sicker
Do you think you could file a ticket in Jira so we don't lose this in the mailing lists? <https://issues.apache.org/jira/browse/LOG4J2> On 20 March 2017 at 21:32, Yang Rui wrote: > Hi, Matt Sicker > > > Sorry for your confusing, here are my detailed test steps: > &g

Re: Compression of rolled files : performance issue when lots of JVMs are using timed based policy

2017-03-22 Thread Matt Sicker
uld help a lot > to avoid contention on CPU cycles. > > Does log4j2 have something to solve this kind of issue ? If not, would you > accept a pull request for this (I will open a Jira if needed) ? > > Regards, > Anthony > -- Matt Sicker

Re: log4j:WARN Attribute "additivity" must be declared for element type "appender-ref"

2017-03-22 Thread Matt Sicker
t; View this message in context: http://apache-logging.6191.n7. > nabble.com/log4j-WARN-Attribute-additivity-must-be- > declared-for-element-type-appender-ref-tp75234.html > Sent from the Log4j - Users mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Display text when thread context is empty

2017-03-22 Thread Matt Sicker
value if nothing was > found and/or an empty value was stored under the key I'm suing (in this > case /userNumber/). > > > Thanks and best regards, > > Christian > > -- Matt Sicker

Re: Display text when thread context is empty

2017-03-22 Thread Matt Sicker
; >>> Christian >>> >>> >> >> - >> 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 log level

2017-03-28 Thread Matt Sicker
t;," > App":"${app_name}","Env":"${sys:env}","data":{"Event_Time" > :"%d{ISO8601}","Thread":"%t","Class":"%c"}}'/> > > > > > > > > > > > > > > > > > > > > > > level="WARN"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > This e-mail is: [ X] public [] private [ ] ask first > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: About performance

2017-03-29 Thread Matt Sicker
hread(). > getStackTrace(); > StackTraceElement caller = stackTraceElements[deep]; > return buildMehodNameClassNameByStackTrace(caller); > } else { > return EMPTY; > } > } > > > ? > > Thanks a lot in advice. > > Best regards, > Pietro > -- Matt Sicker

Re: Kafka Appender with Programmatic Configuration

2017-03-29 Thread Matt Sicker
;testTopic"); > kafkaBuilder.add(builder.newLayout("PatternLayout") > .addAttribute("pattern", "%d{HH:mm:ss:SSS} | %logger{20} | > %msg%n%ex{5}")); > > builder.add(kafkaBuilder); > > builder.add(builder.newRootLogger(Level.INFO).add( > builder.newAppenderRef("KafkaLogger"))); > > return builder.build(); > } > > Hope someone can help me. > > Thanks and BR, > Marvin > -- Matt Sicker

Re: Kafka Appender with Programmatic Configuration

2017-03-29 Thread Matt Sicker
Every item in the ConfigurationBuilder is a > Component. We have “special” Components for things that are always used, > such as Loggers and Appenders. But we can’t know about every type of > Component so in those cases you just use the generic Component. > > Ralph > > > O

Re: Re[2]: Apache chainsaw

2017-03-29 Thread Matt Sicker
gt; >> another project? > >> > >> Best regards > >> Joao > >> > > > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Re[2]: Apache chainsaw

2017-03-29 Thread Matt Sicker
Note there's also the Lilith project <http://lilith.huxhorn.de/> which provides some similar features. On 29 March 2017 at 14:41, Matt Sicker wrote: > Shouldn't we set up a Jenkins job for this so people can get snapshots? > Also, would be a good idea to work on a releas

Re: Apache chainsaw

2017-03-29 Thread Matt Sicker
t;>> Joao > >>> > >> > >> > > > > ----- > > 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: About performance

2017-03-30 Thread Matt Sicker
.@gmail.com > >>>>> > >>>>>>> wrote: > >>>>>>>> > >>>>>>>> Hi, > >>>>>>>> > >>>>>>>> sorry for boothering you all. I'm in the need to have a logging > >>>>>>>> optimization and i whould like to ask you all about the use of > %m%n. > >>>>>>>> > >>>>>>>> Due to the fact i need optimization should i use : > >>>>>>>> > >>>>>>>> %m%n > >>>>>>>> > >>>>>>>> or should implement my own Class/Method name finder with: > >>>>>>>> > >>>>>>>> > >>>>>>>> private static String getLoggingMethod() { > >>>>>>>> StackTraceElement stackTraceElements[] = Thread.currentThread(). > >>>>>>>> getStackTrace(); > >>>>>>>> StackTraceElement caller = stackTraceElements[3]; > >>>>>>>> return caller.getMethodName(); > >>>>>>>> } > >>>>>>>> > >>>>>>>> and > >>>>>>>> > >>>>>>>> > >>>>>>>> private String getLoggingMethodClassNameIfDebug(int deep) { > >>>>>>>> if (logger.isDebugEnabled()) { > >>>>>>>> StackTraceElement stackTraceElements[] = Thread.currentThread(). > >>>>>>>> getStackTrace(); > >>>>>>>> StackTraceElement caller = stackTraceElements[deep]; > >>>>>>>> return buildMehodNameClassNameByStackTrace(caller); > >>>>>>>> } else { > >>>>>>>> return EMPTY; > >>>>>>>> } > >>>>>>>> } > >>>>>>>> > >>>>>>>> > >>>>>>>> ? > >>>>>>>> > >>>>>>>> Thanks a lot in advice. > >>>>>>>> > >>>>>>>> Best regards, > >>>>>>>> Pietro > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >> - > >>>>>>> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > >>>>>>> For additional commands, e-mail: log4j-user-help@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: Kafka Appender with Programmatic Configuration

2017-03-30 Thread Matt Sicker
I think so. That'd be less confusing. On 30 March 2017 at 02:43, Mikael Ståldal wrote: > Would it make sense to have shortcuts for Property and KeyValuePair, since > they are generic and used by several appenders/layouts? > > On Wed, Mar 29, 2017 at 7:12 PM, Matt Sicker wrote

Re: Programmatically determine if logger is "OFF"

2017-03-30 Thread Matt Sicker
0459& > linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8> > > <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a= > 1617290459> > JUnit in Action, Second Edition > <https://www.amazon.com/gp/product/1935182021/ref=as_li_ > tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021& > linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22 > > > > <http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a= > 1935182021> > Spring Batch in Action > <https://www.amazon.com/gp/product/1935182951/ref=as_li_ > tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951& > linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B% > 7Blink_id%7D%7D%22%3ESpring+Batch+in+Action> > <http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a= > 1935182951> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > -- Matt Sicker

Re: Apache chainsaw

2017-04-06 Thread Matt Sicker
We can probably do that, though usually we like to do a 72 hour grace period to make sure there are no objections before migrating repositories. On 6 April 2017 at 02:01, Robert Lu wrote: > Can chainsaw migrate to git? > > On Thu, Mar 30, 2017 at 4:04 AM, Matt Sicker wrote: > >

Re: Apache chainsaw

2017-04-07 Thread Matt Sicker
ll wrote: > > > > +1 for migration to Git. > > > > On 6 April 2017 at 07:44, Matt Sicker wrote: > > > >> We can probably do that, though usually we like to do a 72 hour grace > >> period to make sure there are no objections before migrating

[ANN] Log4j 2.8.2 released

2017-04-08 Thread Matt Sicker
The Apache Log4j 2 team is pleased to announce the Log4j 2.8.2 release! Apache Log4j is a well known framework for logging application behavior. Log4j 2 is an upgrade to Log4j that provides significant improvements over its predecessor, Log4j 1.x, and provides many other modern features such as su

Re: [ANN] Log4j 2.8.2 released

2017-04-09 Thread Matt Sicker
you used the 2.8.1 logo instead of 2.8.2. > > Oh darn, I just noticed the web site wasn’t updated either. I guess I > will have to fix that. > > Ralph > > On Apr 8, 2017, at 4:36 PM, Remko Popma wrote: > > Blogged: https://blogs.apache.org/logging/entry/log4j-2-8-2-released > > > -- Matt Sicker

Re: Apache chainsaw

2017-04-09 Thread Matt Sicker
you suggesting you would want to get involved > > in > > > improving Chainsaw if it moved to git? > > > > > > Ralph > > > > > > > On Apr 7, 2017, at 6:42 PM, Brett Randall > > wrote: > > > > >

Re: log4j2 support kafka

2017-04-11 Thread Matt Sicker
appender.k.type = Kafka appender.k.name = kafka appender.k.topic = xxx appender.k.layout.type = PatternLayout appender.k.layout.pattern = %message appender.k.property.bootstrap.servers = :9092 At least that looks like it should work. Rename "k" to whatever you want as it's mostly a way to keep a f

Re: Buffering in Console Appender?

2017-04-13 Thread Matt Sicker
when > there is nothing left to take away.” > Antoine de Saint Exupéry > -- Matt Sicker

Fwd: CVE-2017-5645: Apache Log4j socket receiver deserialization vulnerability

2017-04-17 Thread Matt Sicker
-- Forwarded message -- From: Matt Sicker Date: 17 April 2017 at 10:17 Subject: CVE-2017-5645: Apache Log4j socket receiver deserialization vulnerability To: d...@logging.apache.org, security , "Almeida De Macedo, Marcio" , oss-secur...@lists.openwall

Re: Chainsaw Zeroconf FileAppender Error

2017-04-21 Thread Matt Sicker
>>>> On Fri, Apr 21, 2017 at 5:41 PM, Scott Deboy > > >>>>> wrote: > >>>>>> > >>>>>>> Send a chunk of your log file and I'll give you a config that > works. > >>>>>>> > >>>>>>> Scott > >>>>>>> > >>>>>>> On Apr 21, 2017 2:36 PM, "Mohit Garg" wrote: > >>>>>>> > >>>>>>>> Hey Scott, > >>>>>>>> > >>>>>>>> Yes, I am using Chainsaw and logging on the same machine. > >>>>>>>> > >>>>>>>> My OS is Ubuntu 14.04. > >>>>>>>> > >>>>>>>> Can you please send me a sample VFSLogFilePatternReceiver config > or > >>>>>>>> point > >>>>>>>> me towards a resource. > >>>>>>>> > >>>>>>>> > >>>>>>>> Thanks, > >>>>>>>> Mohit Garg > >>>>>>>> > >>>>>>>> ​ > >>>>>>>> > >>>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> -- > >>>>>> Thanks and Regards, > >>>>>> Mohit Garg > >>>>>> > >>>>>> Masters|Computer Engineering > >>>>>> Virginia Polytechnic Institute > >>>>>> and State University > >>>>>> > >>>>>> <+1-540-449-3550> <https://www.linkedin.com/in/mogarg> > >>>>>> <https://github.com/mogarg> <http://bit.ly/mogargcv> > >>>>>> > >>>>> > >>>>> > - > >>>>> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > >>>>> For additional commands, e-mail: log4j-user-h...@logging.apache.org > >>>>> > >>>>> > >>>> > >>>> > >>>> -- > >>>> Thanks and Regards, > >>>> Mohit Garg > >>>> > >>>> Masters|Computer Engineering > >>>> Virginia Polytechnic Institute > >>>> and State University > >>>> > >>>> <+1-540-449-3550> <https://www.linkedin.com/in/mogarg> > >>>> <https://github.com/mogarg> <http://bit.ly/mogargcv> > >>>> > >>> > >>> - > >>> 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: Trailing space on loglevel in properties file not trimmed

2017-04-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 > > > > > > > > - > > 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: Trailing space on loglevel in properties file not trimmed

2017-04-25 Thread Matt Sicker
ooked at the Travis build. I don’t even know where it is > running. It certainly isn’t configured for Java 9. > > Ralph > > > On Apr 25, 2017, at 7:10 AM, Matt Sicker wrote: > > > > Might be because we never updated the travis config after adding java 9 > > support

Re: Trailing space on loglevel in properties file not trimmed

2017-04-25 Thread Matt Sicker
Java 9 at the moment. > > > > On 25 April 2017 at 11:47, Ralph Goers > wrote: > > > >> I’ve never looked at the Travis build. I don’t even know where it is > >> running. It certainly isn’t configured for Java 9. > >> > >> Ralph > >> >

Re: Programmatically configure jul to route to log4j2

2017-05-01 Thread Matt Sicker
ilar configuration: > https://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html > -- Matt Sicker

Re: How can I use log4j 2 if there are both log4j and log4j 2 jars included in classpath?

2017-05-22 Thread Matt Sicker
INF/lib, and it have classes of log4j (v1) and slf4j inside it. > > >>> > > >>> Since I cannot delete activemq-all.jar, so how can I use log4j 2 for > > >>> logging while both log4j and log4j 2 classes are in the classpath? > > >>> > > >>> Thanks. > > >> > > >> > > > > > > > > - > > 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 can I use log4j 2 if there are both log4j and log4j 2 jars included in classpath?

2017-05-25 Thread Matt Sicker
n I do this, then? > > Thanks. > > > On Mon, May 22, 2017 at 11:22 PM, Matt Sicker wrote: > > > The best workaround in your scenario definitely sounds like rearranging > the > > classpath with log4j2 first. > > > > On 19 May 2017 at 21:33, Sigmond Hola

Re: How to Pass Application Name in TCPSocketServer implementation from client to server

2017-06-09 Thread Matt Sicker
t; Sample snippet from edge node or Server - log4j2-server.xml > > > > > > > %d{ISO8601} %p %c{1.} [%t] %m%n > > > > > > > > > > > > > > > Thank you so much for your time. > > Regards, > > Anhad Singh Bhasin > -- Matt Sicker

Re: Reduce multiple appenders and loggers

2017-06-12 Thread Matt Sicker
should not refer to same file > appender (e.g. FileAppender, RollingFileAppender etc). Is it still valid > for latest versions? > > 2. Is there a way to shrink the xml by reducing both appenders and loggers? > > 3. Is it a feasible feature for log4j2 so that a logger can have multiple > names? (I am thinking about requesting the feature) > For example: > > > > > > > > > > Regards, > sazzad > -- Matt Sicker

Re: Apache commons-logging bridge for log4j2

2017-07-05 Thread Matt Sicker
ing refer to these which are in a different > package? > > stackoverflow question: Apache commons-logging bridge for log4j2 > <https://stackoverflow.com/questions/44839779/apache- > commons-logging-bridge-for-log4j2> > -- Matt Sicker

Re: Apache commons-logging bridge for log4j2

2017-07-07 Thread Matt Sicker
r-in-osgi.html < > > http://blog.osgi.org/2013/02/javautilserviceloader-in-osgi.html> > > > > Ralph > > > > > On Jul 5, 2017, at 10:27 AM, Matt Sicker wrote: > > > > > > It's loaded via the ServiceLoader interface: > > > &

Re: Suppressing exceptions from SMTPAppender [log4j 1.3]

2017-07-12 Thread Matt Sicker
n the API/config somewhere, could I simply override > the append(LogEvent) method to remove the ThrowableInformation from the > LogEvent object, then invoke the superclass's append() method? > > Thanks, > -chris > > -- Matt Sicker

Desire for a Gitter channel?

2017-07-17 Thread Matt Sicker
ryone. Also, I find chat rooms a bit easier to reply to while at work than browsing Stack Overflow. ;) -- Matt Sicker

Re: Desire for a Gitter channel?

2017-07-17 Thread Matt Sicker
Gregory > Sent: Tuesday, 18 July, 07:08 > Subject: Re: Desire for a Gitter channel? > To: Log4J Users List > > So, like a private Slack? Bah, why not, as long as we make sure to > document any and all decisions on the ML, it could be OK. Gary On Mon, Jul > 17, 2017 at 11:35 AM, Mat

Re: Desire for a Gitter channel?

2017-07-18 Thread Matt Sicker
esire for a Gitter channel? > >> To: Log4J Users List > >> > >> So, like a private Slack? Bah, why not, as long as we make sure to > >> document any and all decisions on the ML, it could be OK. Gary On Mon, > Jul > >> 17, 2017 at 11:35 AM, Matt Sicker wro

Re: Desire for a Gitter channel?

2017-07-24 Thread Matt Sicker
search seems to maybe be saying hipchat is better for many. > > > > We have already Hipchat available, I think. (We've added it to our > project, > > Apache UIMA). > > > > -Marshall Schor > > > > > > On 7/17/2017 10:20 PM, Matt Sicker wrote

Re: Appender for mail.log

2017-07-25 Thread Matt Sicker
gt; -- > inexso - information exchange solutions GmbH > Ofener Straße 30 | 26121 Oldenburg > www.inexso.de > -- Matt Sicker

Re: Desire for a Gitter channel?

2017-07-25 Thread Matt Sicker
f off-ML media should be limited to make > sure ALL decisions happen on the ML. > > Gary > > On Jul 25, 2017 02:19, "Mikael Ståldal" wrote: > > > I would prefer if we could chose one or the other, and not have both at > > the same time. > > > > > &

Re: Desire for a Gitter channel?

2017-07-25 Thread Matt Sicker
ular for that? I don't want to look in many > places to help people. I do not think we should dilute... I have the user > ML I read, and SO, sometimes... I am not fond of have yet a THIRD place to > possible monitor... > > Gary > > On Tue, Jul 25, 2017 at 8:55 AM, Matt Sicke

[ANN] Log4j Scala API version 11.0 is now released

2017-07-29 Thread Matt Sicker
The PMC of the Logging Services project has released the first standalone version of the Log4j Scala API, version 11.0. This release adds support for Scala 2.12 in addition to continued support for Scala 2.10 and 2.11. The version number has been increased all the way to 11 in order to differentiat

Article about logging practices

2017-07-30 Thread Matt Sicker
https://dev.to/grhegde09/logging-done-right-makes-your-life-bright Thought this was an interesting take on a lot of the best practices encouraged by Log4j. The article covers logging in the realm of C applications, but it's all mostly relevant to Java and JVM languages as well. -- Matt Sicker

Re: Logs for Log4j2 TCPSocketServer

2017-07-31 Thread Matt Sicker
ded anymore. There > have been no changes to the Java codebase. Some minor cluster changes > happened however. Is there any log that gets generated for the > TCPSocketServer which can tell if TCPSocketServer is having some issues in > filtering? > > Any help is deeply appreciate

Re: Fwd: Add json object to log4j2 when is JSONLayout

2017-08-11 Thread Matt Sicker
t; > "message":"{\"line_id\": 12,\"play_name\": \"Jeus\"}", > > "endOfBatch":false, > > "loggerFqcn":"org.apache.logging.log4j.spi.AbstractLogger", > > "contextMap":[ > > > > ], > > "threadId":1, > > "threadPriority":5, > > "source":{ > > "class":"com.jeus.logger.json.loggerjson.Main", > > "method":"main", > > "file":"Main.java", > > "line":62 > > } > > } > > > > but i will show message as a json object same this: > > > > "message":{"line_id": 12,"play_name":"Jeus"}, > > > > you can see more detail about my problem in stackOverflow > > <https://stackoverflow.com/questions/45611509/add-json- > > object-to-log4j2-when-is-jsonlayout?noredirect=1# > comment78217774_45611509> > > > > > > thank you for attention > > > -- Matt Sicker

Re: Plugins.dat file not packing with jar for OSGi bundle

2017-09-07 Thread Matt Sicker
plugins.* > > > *;resolution:=optional > > > !com.example.log4j2.plugins.* > > > > > -- Matt Sicker

Re: Plugins.dat file not packing with jar for OSGi bundle

2017-09-08 Thread Matt Sicker
es. You can refer Apache Felix Maven > Bundle Plugin (BND) Documentation > <http://felix.apache.org/documentation/subprojects/ > apache-felix-maven-bundle-plugin-bnd.html> > Added the following line after > > ${project.build.directory}/classes/ > > > On Fri, Sep 8,

Re: Log4J2 PatternConverter for adding a custom field to the log record

2017-09-10 Thread Matt Sicker
options[0]); > } > > public static PIdConverter newInstance(String[] options) { > return new PIdConverter(options); > } > > @Override > public void format(LogEvent event, StringBuilder toAppendTo) { > toAppendTo.append(getpID()); > } > > public String getpID() { > String pId = "123"; > if (pId == null) { > pId = "[]"; > } > return pId; > } > } > -- Matt Sicker

Re: Log4J2 PatternConverter for adding a custom field to the log record

2017-09-10 Thread Matt Sicker
e options here? I can use "pid" in the > constructor which works fine. But then there is no use of the options > String array. Is this a good practice or is there a better way to implement > appending a custom field to the log event? > > On Sep 10, 2017 10:05 PM, "Matt

Re: Query about Update database log event using log4j

2017-09-12 Thread Matt Sicker
On 12 September 2017 at 09:06, Gaurav Deshpande wrote: > Hi Matt/Ralph > > > > This is a query on log4j2 java API. > > > > Is it possible to update the logged events in database with JDBCAppender > or JPAappender? > The existing API is all for inserts. By nature of how logs work, I've always con

Re: Query about annotation support for log4j2

2017-09-13 Thread Matt Sicker
First off, please don't email developers directly. We're all subscribed to the user list and answer questions here. Secondly, no, that feature does not exist, though there is work being done toward an audit log API for 2.10. On 13 September 2017 at 01:42, Gaurav Deshpande wrote: > Hi Matt/Ralph

Re: Re[2]: Log4j and Java 9 JPMS support

2017-09-18 Thread Matt Sicker
iles moduleA.log, moduleB.log, > moduleC.log. > >> > >> If such feature is not supported, can anyone say when approximately it > will be > >> implemented. > >> > >> Best regards, Alex > > > > > > > -- > Alex Sviridov > -- Matt Sicker

Re: issues with log4j-web.jar deployed location

2017-09-27 Thread Matt Sicker
t; > thanks! > Bill > > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: Best practice for logging in a highly available hadoop cluster

2017-09-27 Thread Matt Sicker
s in a shared disk among all > the edge nodes? > > Any suggestions, comments would be deeply appreciated. > > Thanks > Anhad Singh Bhasin > -- Matt Sicker

Re: AbstactDatabase appender issue with AsyncLogger

2017-09-28 Thread Matt Sicker
tAndStart(); > > >try { > > >this.writeInternal(event); > > >} finally { > > >this.commitAndClose(); > > >} > > >} > > > } > > > > > > After that correspoding LogEvent object can be re-used in the > > > DistruptorRingBuffer mechanism. > > > > > > So if a delay could happen in the database the LogEvent objects are > > > overriden with same referance which causes inconsitency while preparing > > > batches. > > > > > > I believe this points to a bug or design problem. > > > > > > Thanks for any help and guidance. > > > -- > > > > > > *Tolga KAVUKÇU* > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > > -- > > *Tolga KAVUKÇU* > -- Matt Sicker

Re: Do you have any plans to instrument `log4j2` with metrics?

2017-10-02 Thread Matt Sicker
ng that. However, if o.a.l.l.core.jmx.Server were refactored to be less of a bundle of static methods and enhanced to allow for service discovery or use of the plugin system, I could see that working out. Perhaps it would be simpler to enhance the specific MBean classes (e.g., AppenderAdmin) come to th

Re: Fetch message values in JDBCAppender

2017-10-06 Thread Matt Sicker
atabse? > > I've tried pattern attribute in column tag but thats not working. > > Input: custom message > Output: store it into database table > > Please help, > > Thanks, > Gaurav > -- Matt Sicker

Fwd: How to store custom-message variable values to the database table's column using log4j2

2017-10-10 Thread Matt Sicker
-- Forwarded message -- From: Gaurav Deshpande Date: 10 October 2017 at 09:02 Subject: How to store custom-message variable values to the database table's column using log4j2 To: "mattsic...@apache.org" , "rgo...@apache.org" < rgo...@apache.org> Hi Matt/Ralph, I've created cus

Re: How to store custom-message variable values to the database table's column using log4j2

2017-10-10 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: How to store custom-message variable values to the database table's column using log4j2

2017-10-11 Thread Matt Sicker
out/MessageLayout.java> combined with a custom appender. On 11 October 2017 at 00:19, gaurav9...@gmail.com wrote: > > > On 2017-10-11 00:49, Matt Sicker wrote: > > Are you using ColumnMapping? See < > > https://logging.apache.org/log4j/2.x/manual/appenders.html#JDBCAppende

Re: HTTPAPPENDER

2017-10-23 Thread Matt Sicker
> -- > Sent from: http://apache-logging.6191.n7.nabble.com/Log4j-Users-f4.html > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: HTTPAPPENDER

2017-10-24 Thread Matt Sicker
> For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: new feature proposal - microloggers

2017-11-24 Thread Matt Sicker
gt; Example usage: You can set that filter at the global level (inside ), per-appender (inside the element), per-logger (as described), or even inside the element which can be useful if your has multiple AppenderRefs. See more info here: < https://logging.apache.org/log4j/2.x/manual/configuration.html#Filters> -- Matt Sicker

Re: Main application uses log4j2-test.xml in Eclipse

2017-11-24 Thread Matt Sicker
quot; > filePattern="app-%d{-MM-dd}-%i.log.gz" > immediateFlush="false" append="false"> > > ${pattern} > > > > > > > > additivity="false"> > > > > > > > > > > /Sverre > -- Matt Sicker

Re: How do I create jdbc appender using programmatic configuration?

2017-11-30 Thread Matt Sicker
...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker

Re: How do I create jdbc appender using programmatic configuration?

2017-12-01 Thread Matt Sicker
t; > > > > > On 2017-11-30 23:07, Matt Sicker wrote: > > > You should be able to create one the same way you create any other > appender > > > using programmatic configuration. > > > > > > On 30 November 2017 at 06:36, gaurav9...@gmail.com < &

Re: Setting different log levels to different appenders for a specific package (logger)

2017-12-07 Thread Matt Sicker
r 2017 at 06:10, Asma Zinneera Jabir wrote: > I want package com.abc.xyz to log only ERRORs to the console and INFO and > above to a file. How do I give the configuration in log4j2.xml for this? > Tried doing the below but didn't work. > > > > > > > > > > > > > -- Matt Sicker

<    1   2   3   4   5   >