Re: [External] Log4j2 - combining .properties and .xml config files

2018-08-20 Thread Fröstl , Christian
king about composite configurations but I don’t see you trying to do that here. Ralph > On Aug 16, 2018, at 5:11 AM, Fröstl, Christian wrote: > > Unfortunately, I am not able to configure it. I tried the following configuration in our properties

Re: [External] Re: Log4j2 - combining .properties and .xml config files

2018-08-16 Thread Fröstl , Christian
PViYbVW7eF0WssQfO2E=>. > On Aug 6, 2018, at 5:55 AM, Fröstl, Christian wrote: > > Hi everybody, > > I just wanted to know if it is planned to combine different logging configuration in the future, or if it is still possible today? > > Example:

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

2018-08-15 Thread Fröstl , Christian
2018, at 2:21 PM, Matt Sicker wrote: > > Sounds like a new feature then. Please file a JIRA ticket. PRs welcome! > > On Tue, 14 Aug 2018 at 01:53, Fröstl, Christian < > christian.froe...@accenture.com> wrote: > >> To be more pre

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

2018-08-15 Thread Fröstl , Christian
Aug 14, 2018, at 2:21 PM, Matt Sicker wrote: > > Sounds like a new feature then. Please file a JIRA ticket. PRs welcome! > > On Tue, 14 Aug 2018 at 01:53, Fröstl, Christian < > christian.froe...@accenture.com> wrote: > >> To be more pre

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

2018-08-14 Thread Fröstl , Christian
To be more precise, I only need the name of the exception in a dedicated field like the thrown_name in the JSON layout. Greetings, Christian On 14.08.18, 08:36, "Fröstl, Christian" wrote: We like to have a local log format and don't like to send all logs directly to the serv

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

2018-08-14 Thread Fröstl , Christian
3 Aug 2018 at 11:09, Fröstl, Christian < christian.froe...@accenture.com> wrote: > Hi everybody, > > we are using the log4j2 json appender to generate json logs which will be > used in graylog. > The JSON layout doesn’t fit perfectly for us, and I tri

Get thrown_name from JSON appender in RollingRandomAccessFile appender

2018-08-13 Thread Fröstl , Christian
Hi everybody, we are using the log4j2 json appender to generate json logs which will be used in graylog. The JSON layout doesn’t fit perfectly for us, and I tried to create our own JSON by using the RollingRandomAccessFile appender with the patternLayout and the JSON encoding function. This

Integration of stacktraceAsString in JSONLayout

2018-03-16 Thread Fröstl , Christian
Hi everybody, I just tried to use the property stacktraceAsString in JSONLayout, but I always get the following error: ERROR JSONLayout contains an invalid element or attribute "stacktraceAsString" We are using log4j2 2.7, but I cannot find any changelog where this option was introduced. Can

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

2018-01-25 Thread Fröstl , Christian
25 January 2018 at 14:33, Fröstl, Christian < christian.froe...@accenture.com> wrote: > Yes, you're right, this is exactly what I want. > If I use this %encode{%m}{JSON} notation, I only have the string "%encode" > in my logfiles and not a the encoded mes

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

2018-01-25 Thread Fröstl , Christian
Jackson) is your best bet. On 25 January 2018 at 04:07, Fröstl, Christian < christian.froe...@accenture.com> wrote: > Hi everybody, > > I like to encode the message and the exception field to JSON notation. > From the docs https://urldefense.proofpoint.com/v

How to encode %m or %ex ?

2018-01-25 Thread Fröstl , Christian
e:///mypath . Ralph > On Jan 24, 2018, at 5:46 AM, Fröstl, Christian wrote: > > Hello everybody, > > We like to use a log4j2.xml file for log4j2 configuration of our hybris application. > If the f

Re: [External] Re: How to specify a log4j2.xml config file outside from classpath?

2018-01-24 Thread Fröstl , Christian
at 6:47 PM +0530, "Ralph Goers" <ralph.go...@dslextreme.com<mailto:ralph.go...@dslextreme.com>> wrote: I’d have to look at the code to be sure, but you might try configuring it as a url - file:///mypath . Ralph

How to specify a log4j2.xml config file outside from classpath?

2018-01-24 Thread Fröstl , Christian
Hello everybody, We like to use a log4j2.xml file for log4j2 configuration of our hybris application. If the file log4j2.xml is part of the classpath and the property "log4j2.config.xml=hybris-log4j2.xml" is part of my local.properties file, it will be loaded automatically and everything is

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

2018-01-16 Thread Fröstl , Christian
ote: > Those are system properties, but in log4j 2.10+, you can also use an > environment variable instead. > > On 3 January 2018 at 07:36, Fröstl, Christian < > christian.froe...@accenture.com> wrote: > >> Hi, >> >> Thanks, th

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

2018-01-03 Thread Fröstl , Christian
1GWo5GNDvnDLF8TE=YD5JM4y8v44bpRXCOPKk3J0VIzak5IxqVyGe6fhkqAM=kCeGLk_Nd7hwvw13yJf3riq_6WW8ixnCv5pTFMijt_U= > On Jan 3, 2018, at 17:08, Fröstl, Christian <christian.froe...@accenture.com> wrote: > > Hi, > > Thanks for your response. > Just one question to verify.

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

2018-01-03 Thread Fröstl , Christian
om/v2/url?u=http-3A__picocli.info=DwIFaQ=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU=37nF0SnGtdjmcblOpYG7cKwaPDc1GWo5GNDvnDLF8TE=hk-mti7hK6agTdNqpiQVl3gpA4ri4hrn2pxHf_8maIE=w_w2x7qWvjFgf1pKLN7kb5Q534FwglDl16TI5-OArl4= > On Dec 20, 2017, at 2:03, Fröstl, Christian <christian.froe..

Log4j2 Async logger fallback method

2017-12-19 Thread Fröstl , Christian
Hi, I currently don’t find any documentation regarding the fallback methods of the log4j2 async logger. What happens when the AsyncLogger.RingBufferSize is too small to log all entries from a burst? Will the application fall back into sync logging and slow down the application or will the new