StatusLogger Multiple logging implementations found

2019-08-26 Thread Debraj Manna
In an application using log4j with slf4j, I am trying to use a dependency (elasticsearch in this) which depends on log4j2. The application's logging dependency looks like this- org.elasticsearch elasticsearch 5.6.16 org.elasticsearch.client transport 5.6.16

Rename log4j2.xml

2018-01-10 Thread Debraj Manna
Is it possible to have log4j configuration in some file other than log4j.xml.? In log back this can be done via -*Dlogback.configurationFile.* *I am looking for something similar.*

Re: Limiting individual log size & filtering some information from Logs

2017-12-20 Thread Debraj Manna
Ohk. On Wed, Dec 20, 2017 at 7:18 PM, Ralph Goers <ralph.go...@dslextreme.com> wrote: > All of the expertise here is focused on Log4j 2. You’d probably have > better luck with this question on StackOverflow. > > Ralph > > > On Dec 20, 2017, at 5:30 AM, Debraj Mann

Re: Limiting individual log size & filtering some information from Logs

2017-12-20 Thread Debraj Manna
I am not able to upgrade to log4j2 yet. So is it possible to do in log4j? On Wed, Dec 20, 2017 at 4:54 PM, Debraj Manna <subharaj.ma...@gmail.com> wrote: > Hi > > Can someone let me know if it is possible to control the size of > individual logs like no log statement shoul

Limiting individual log size & filtering some information from Logs

2017-12-20 Thread Debraj Manna
Hi Can someone let me know if it is possible to control the size of individual logs like no log statement should be more than 1KB? Also can you let me know if there is some pattern or filter available that will allow me to remove certain patterns from my logs & replace it with some placeholder?

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

2017-12-07 Thread Debraj Manna
Cross posting from stackoverflow Can some one let me know is it possible to pass array or list to a log4j appender property via log4j.xml or log4j.properties? Something like below in

Validating if Exception is passed as last argument

2017-12-04 Thread Debraj Manna
Cross-posting from stackoverflow As mentioned in SLF4J FAQ The SLF4J API supports parametrization in the presence of an exception, > assuming

Log4j Stacktrace - Only have certain lines in stacktrace

2017-12-02 Thread Debraj Manna
In my stacktrace I only want to have lines starting with let's say com.xyz. Is it possible to have something like the solution discussed in this answer ?

Re: Difference between slf4j-log4j12 vs log4j

2017-11-30 Thread Debraj Manna
og4j 1 reached end-of-life > two years ago and isn’t supported by anyone. > > Ralph > > > > On Nov 30, 2017, at 6:32 AM, Debraj Manna <subharaj.ma...@gmail.com> > wrote: > > > > Crossposting from stackoverflow > > <https://stackoverflo

Re: Override log4j.properties during testing

2016-07-12 Thread Debraj Manna
level that is set in src/test/resources/log4j.properties. Something like below:- Setup setup = new Setup(Mode.TEST, ClassLoader.getSystemClassLoader()); setup.withDefaultLogLevel(Logger.getRootLogger().getLevel());Sirius.start(setup); On Wed, Jun 15, 2016 at 11:42 PM, Debraj Manna <su

Re: Override log4j.properties during testing

2016-06-15 Thread Debraj Manna
wrote: > That's not the right artifact. Take a look here: < > http://logging.apache.org/log4j/2.x/manual/migration.html> > > On 15 June 2016 at 11:16, Debraj Manna <subharaj.ma...@gmail.com> wrote: > > > I updated my pom as shown below. Rest all are same. But still no

Re: Override log4j.properties during testing

2016-06-15 Thread Debraj Manna
; > > On Jun 15, 2016, at 6:04 AM, Debraj Manna <subharaj.ma...@gmail.com> > wrote: > > > > I want to log only the ERROR during testing in maven. For this purpose I > > created a file src/test/resources/log4j.properties, which is going to > > overrid

Override log4j.properties during testing

2016-06-15 Thread Debraj Manna
I want to log only the ERROR during testing in maven. For this purpose I created a file src/test/resources/log4j.properties, which is going to override the configuration I already have in src/main/resources/log4j.properties. But this is not working. My log4j.properties looks like below:-