logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sujatha rdn <sujatha...@wavecrest.gi>
Subject RE: Issue with configuration status and Rolling Files
Date Mon, 06 Oct 2014 09:02:23 GMT
Yup.

Herewith attaching the configuration file.

And also, in my application, I will be accessing in the following way.

Public class Logger{
private static final org.slf4j.Logger slfLogger=
LoggerFactory.getLogger("webAnalyticLog");
private static final org.slf4j.Logger adminSlfLogger=
LoggerFactory.getLogger("adminAnalyticLog");

if(info.getServiceType() == ADMIN){
			adminSlfLogger.info(message);
		}else{
			slfLogger.info(message);		}
}

-----Original Message-----
From: Harinath Mallepally [mailto:harinath@careerscale.in]
Sent: Monday, October 06, 2014 2:22 PM
To: Log4J Users List
Subject: Re: Issue with configuration status and Rolling Files

share the configuration file.



Thanks
Harinath Mallepally
harinath@careerscale.in
Careerscale IT Consulting LLP
+91 9391920444 / 040-42100276
Hyderabad

On Mon, Oct 6, 2014 at 2:17 PM, sujatha rdn <sujathardn@wavecrest.gi> wrote:

> Hi,
>
>
>
> I have migrated to log4j2 with slf4j adapter. But I am facing some issues.
>
>
>
> 1.       When I add configuration status <configuration status=”trace”> I
> don’t see any logs related to log4j in my catalina logs
>
> 2.       And also, I have 5 loggers mapped to 5 different rolling files.
> But only 4 files get created in the specified location and in that
> only one files gets updated with the logs.
>
>
>
> Here are some details that you want to know before you suggest me a
> solution.
>
> 1.       I am working on servlet 2.5 web application and our container is
> tomcat 7.
>
> 2.       I am using slf4j adapter as interface in my application to access
> log4j2
>
>
>
> Do please let me know if you need any further details to help me out.
>
>
>
>
>
> Thanks,
>
> Sujatha
>

Mime
View raw message