logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sreejith S <srssreej...@gmail.com>
Subject Re: Separate application logs from framework logs
Date Thu, 20 Apr 2017 14:53:16 GMT
I will try this Chandra.  Thank you

On 20-Apr-2017 8:18 pm, "Chandra" <chandra.tungathurthi@rwth-aachen.de>
wrote:

> Hi Sreejith,
>
> If I understand it correctly. you want to separate the logs from your
> application and framework right?
>
> this is a pretty standard use case of log4j(1/2). I assume you are using
> log4j1.X as you mention `log4j.properties` ( keep in mind, this is
> deprecated/too old try moving to log4j2)
> you can define separate appenders for your application and framework
> loggers.
>
> some basic guide is here: https://www.tutorialspoint.com/log4j/
> log4j_configuration.htm
>
> thanks,
> Chandra
>
> On 20 Apr 2017, 7:05 PM +0530, Sreejith S <srssreejith@gmail.com>, wrote:
> > Hi All,
> >
> > I have an application running with in a framework. The framework has a
> > log4j.properties and assume its writing to a file. When i deploy my
> > application in framework the log file contains framework level logs plus
> > application logs.
> >
> > But i want to have application level logs only in the log output file. Or
> > segregate application level logs from framework logs and write it
> > separately.
> >
> > Is it possible ? If yes , what would be the approach ?
> >
> > Thanks & Regards,
> > --
> >
> >
> > *Sreejith.S*
> > https://github.com/srijiths/
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message