Hi everybody,
We have a production system with several users which uses log4j. The problem
I have is that all the log statements from the app for all of the users are
outputted to the one file. I've been asked to investigate a way to separate
the logs for each user.
The initial suggestion was
Howdy,
How do you know it got killed? Any log messages? Turn on log4j.debug=true to see if
you can get more details. I personally have never seen this behavior before.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Srikanth Mudale [mailto:[EMAIL PROTECTED]
Sent:
Hi,
I have a thread dump, which gives the status of all threads for a service.
I don't see Dispatcher-Thread in the dump. I have taken the status snapshot twice.
Sometimes, I see log4j appenders waiting on some methods like
convertAsciiToChar or writeToFile etc.
Could you explain such
Hi
I had a similar problem.
I put a NDC statement in each request and filter out
Example:
doGet (HttpServletRequest req, HttpServletResponse res)
{
NDC.push (User: +ID);
process_something ();
}
Then I include the NDCMatchFilter from the following page in the
log4j.jar
Thanks very much,
I figured it out from the log4j manual on the Jakarta site.
Cheers for your help though!
Feargal
-Original Message-
From: Joerg Eggink [mailto:[EMAIL PROTECTED]
Sent: 17 June 2003 17:06
To: 'Log4J Users List'
Subject: RE: Chainsaw Question
Hi
I had a similar
Howdy,
I have a thread dump, which gives the status of all threads for a
service.
Can you post it? How do you know a thread is a log4j thread?
I don't see Dispatcher-Thread in the dump. I have taken the status
snapshot
twice.
Do you mean the JVM's Dispatcher Thread, typically identified as:
I think I did something like this. I created a symbolic link from the
Weblogic DefaultWebApp to my log file. So I can go to
http://myserver/server.log and get the current log file. I didn't bother
securing it, but WebLogic has ways of locking down a directory so that
only users on an access
Thanks for the info!
Did you place the symbolic link in the WEB-INF of the DefaultWebApp
folder?
Alison Ortega
North Carolina State University
ACS
Systems Programmer II
919-513-1417
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Ok, I got it working - the link goes in the root of DefaultWebApp.
Thanks for your help.
Alison Ortega
North Carolina State University
ACS
Systems Programmer II
919-513-1417
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
My application consists of a few stateless session beans, a single entity
bean, a single webapp and some shared classes (including a log4j wrapper
singleton) packaged and deployed on WebLogic v7 as a sigle EAR. Several
log files are written by log4j from various locations in the application.
Not in WEB-INF, just in the DefaultWebApp directory. It won't get
resolved properly if it's in WEB-INF.
-Beth
-Original Message-
From: Alison Ortega [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 3:38 PM
To: [EMAIL PROTECTED]
Subject: RE: Publishing .log files via url for
I have a few questions regarding the FallbackErrorHandler's behavior. I
have a FallbackErrorHandler attached to an appender that writes to a SQL
database. From my testing, it looks like upon the first error writing to
the database, the FallbackErrorHandler adds the secondary appender to the
I have a few questions regarding the FallbackErrorHandler's behavior. I
have a FallbackErrorHandler attached to an appender that writes to a SQL
database. From my testing, it looks like upon the first error writing to
the database, the FallbackErrorHandler adds the secondary appender to
try turning on debug with
-Dlog4j.debug=true in your java options in your startup script for the
webserver instance.
Btw, what's an IBM'er doing running weblogic:-)
Alison Ortega
North Carolina State University
ACS
Systems Programmer II
919-513-1417
Howdy,
Are you using configureAndWatch() to configure log4j? And if so, is a
few minutes (from your message) the watch period for
configureAndWatch()?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Jeffrey Jakubiak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17,
Nope, not using it... and a few minutes doesn't seem to line up with
anything.
Jeff Jakubiak - Advisory I/T Specialist
IBM Global Services Central Region EAD
--
Voice/Fax: 248.552.5788 - T/L: 896.5788
Email: [EMAIL
Howdy,
Then I second Ms. Ortega's suggestion. Set -Dlog4j.debug=true on your
java command line and check the System.out/System.err log. It will have
a lot more information.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Jeffrey Jakubiak [mailto:[EMAIL PROTECTED]
Howdy,
No need to cross-post to both log4j-user and log4j-dev ;)
by starting this class i get an segmentation fault. without the
DOMConfiguration it is running perfectly. There is no matter that is in
the xml-config file.
this example works fine under solaris and windows.
You mean, it crashes
Hi,
I think I understand a bit more now:
- It works fine on Solaris and Windows
- It crashed on Linux Suse 7.2
Right?
I doubt the crash is due to log4j. It's probably due to something in
your OS.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Shapira, Yoav
Sent:
Hi,
i am trying to use the log4j under linux with java 1.3.1_08. i have an
xml file for log4j configuration.
package log4j;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import org.apache.log4j.xml.DOMConfigurator;
public class MyLog4j {
static Logger logger
Hi everybody,
Hi Egan,
The initial suggestion was to put a session id or an ip
address with each
debug statement and separate them using grep. A later
proposal was to use
something like chainsaw to generate a separate logfile for
each user. (Is
this possible with chainsaw???)
As one
Hello,
I'm running into a problem with the org.apache.log4j.Layout
abstract class and (I believe) with the way in which the distributed
classes are compiled. The problem is that I have found that some
VM's expect the Layout class to have an entry for the abstract activateOptions()
method.
Hi,
Is there any way to log to a webservice using log4j? I have been reading abt socket
appender, but if there is something that can log to a web service, it will really help.
Thanks,
Sangeeta
-
To unsubscribe, e-mail: [EMAIL
No, we encountered similar behavior (losing the event that *caused* the
primary appender to call errorHandler.error(...)) and looked at the
source for the FallbackErrorHandler.
Our solution was to create a new error handler class called
FailoverErrorHandler which never replaces the primary
Howdy,
Can you share your FailoverErrorHandler for possible inclusion in future log4j
versions?
Yoav Shapira
--- Scott Heaberlin [EMAIL PROTECTED] wrote:
No, we encountered similar behavior (losing the event that *caused* the
primary appender to call errorHandler.error(...)) and looked at the
http://nagoya.apache.org/wiki/apachewiki.cgi?Log4JProjectPages/TraceLevel
-Original Message-
From: Ramdas Hegde [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 4:50 PM
To: Log4J Users List
Subject: RE: How to create customized Levels
Yoav,
We plan to put in some log statements
Jim,
Thanks for that link. It really helped.
Ramdas
-Original Message-
From: Jim Moore [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 4:41 PM
To: 'Log4J Users List'
Subject: RE: How to create customized Levels
Actually, there's no difference in using log4j in JSP.
Just add the log code in your JSP scripts.
Like
logger.debug(your.message);
-Original Message-
From: Scott Burns [mailto:[EMAIL PROTECTED]
Sent: 2003618 10:59
To: Log4J Users List
Subject: Log4j within JSP
Any Suggestions for
Hi Scott,
We had used log4j in our formbeans (ours was a struts application) and
jsps; but there was a problem when our application executed in the
clustering environment. When a failover happens, the view layer component
float as usual in session or request, but a reference to log module is
Anyone done this? I am curious as to how you actually make the log
files available (in Weblogic) from the local filesystem in a secure way.
The docs reference a url that ends with the log file name.
Thanks!
Alison Ortega
North Carolina State University
ACS
Systems Programmer II
919-513-1417
30 matches
Mail list logo