Place the property file in root package.
-Original Message-
From: Don Raikes [mailto:don.rai...@oracle.com]
Sent: Friday, October 08, 2010 4:10 AM
To: log4j-user@logging.apache.org
Subject: locating my log4j.properties file
Hello,
I have a java project which I compile and then package
* Could any one provide information as what would be the configuration
changes in JSP application between log4j and Logback?
* Do we need to modify any code or properties file to make my
application to work for both?
Could any one provide information of using commons logging for logging my
application related logs in my JSP-STRUTS application
for the appender in the configuration.
Preventing
logging from going to that file is a totally separate issue. Please
clarify.
Jake
Raghuveer wrote:
Instead of putting fatal and minimizing the logs .I tried as below from
other replies for this subject which is also not Working
The way
: Raghuveer [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 27, 2007 10:40 AM
To: log4j-user@logging.apache.org
Subject: How to Stop logging
Is there way to stop logging in the application..
This is my configuration of log4j.properties
will be automatically stopped. This way you
can minimized the amount of logging generated.
-Original Message-
From: Raghuveer [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 27, 2007 10:40 AM
To: log4j-user@logging.apache.org
Subject: How to Stop logging
Is there way to stop logging
Hello,
Question 1
I have placed log4j.properties in WEB-INF of my struts application.
With this application logs test.log is created in the directory.
I found in all the logs were created for java files in package
com.testapp.test to test.log
In addition to this there is one more log
Is there way to stop logging in the application..
This is my configuration of log4j.properties
log4j.logger.com.testapp.test=debug, test
log4j.appender.test=org.apache.log4j.RollingFileAppender
log4j.appender.test.File=logsserver\\APP_LOGS\\test\\test.log
, Raghuveer [EMAIL PROTECTED] wrote:
Since for struts framework commons-logging.jar is used
How can I use Commons logging so that logs related to my application are
sent to seprate log file.
How to configure my logger realted to application alone
We use struts applications and loggging by log 4j.
We are configuring loggers like normal MVS application.
But,
What is that i need to do if i want my struts application to use
commons-logging for logging.
-
To
What changes i need to do to view logs on browser window.
---
log4j.logger.com.test.xyz=debug, xyz
log4j.appender.xyz = org.apache.log4j.RollingFileAppender
log4j.appender.xyz.File=\\xyz\\xyz.log
log4j.appender.xyz.MaxFileSize=5000KB
Hi
I have added properties file in WEB-INF/src/com/config directory of my
application.
Now i am reading log4j properties in my code below MyAppLog.java
MyAppLog cLog = null;// holds Logger
cLog = new MyAppLog();
cLog.log(hello);
I am still getting this error
In my present web application can i send logs to different files.
example:
I am working in struts,hibernate project.
Is it possiable to send hibernate logs to one file and my application
specific logs to another file.
-
To
I am using struts1.2.8 with hibernate 3.
I am getting below error.
Is there any solution for this problem ?
private DailyRollingFileAppender cAeroAppender;
java.util.Calendar cal=java.util.Calendar.getInstance(); // getting
calendar
each hierarchy to a separate file.
On 4/20/06, Raghuveer [EMAIL PROTECTED] wrote:
In my present web application can i send logs to different files.
example:
I am working in struts,hibernate project.
Is it possiable to send hibernate logs to one file and my application
specific logs
15 matches
Mail list logo