IL PROTECTED]]
> Sent: Friday, August 17, 2001 7:48 PM
> To: LOG4J Users Mailing List
> Subject: RE: Log4J and EJB's
>
>
>
> Hi,
> My EJB's are deployed on the same weblogic server as the jsp's.
> Does anyone have any example ejb logging code ?
> Cheers
>
Where are your EJB's deployed? If they are not on the same machine/VM then
they may not be getting configured for log4j.
Hope this helps,
Seemantini
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 4:55 AM
To: [EMAIL PROTECTED]
Subject:
Sorry I correct my earlier statement
synchronized(this) should be changed to
synchronized(SocketAppender.this) in my opinion.
-Original Message-
From: Seemantini Godbole
Sent: Wednesday, August 15, 2001 4:27 PM
To: 'LOG4J Users Mailing List'
Subject: bug in SocketAppende
I was looking at some code in SocketAppender, particularly the following
piece:
I understand that the SocketAppender fires another thread, Connector,
whenever it can not reach the remote server. The connector keeps trying
every now and then to connect to the remote server and it sets the value of
Well, am I correct in understanding?but I think renderer will take the
entire object and produce a string representation. Do other people have
needs such as producing a log with pattern..
%d %p %m{duration} %m{userid} %c %m%n.where duration and userid are set
in that message.
I also am a
Timothy G. Mullé
Senior Software Architect
Reuters Valley Forge Solutions Center
1000 Madison Avenue
Norristown, PA 19403-2432
Phone: (610) 650-8600 x8340
Fax: (610) 650-8170
Seemantini Godbole
Tim,
Look at SocketAppender, in case you want to send to remote server, you want
to send the entire LoggingEvent and not just message. It is very
interesting...take a look..also at SocketServer and SocketNode
ths,
Seemantini
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROT
these methods.
In my case there is object which has a message, starttime and endtime. Then
when you create a logging event you can supply a String message and any
other params such as starttime etc.
-Original Message-
From: Seemantini Godbole
Sent: Monday, August 06, 2001 2:55 PM
To: '
Tim,
As Ceki pointed out, I do %x{userid/request/site} etc to log info that is
thread specific.
For performance and Transaction I have extended PatterLayout and
PatternParser class. Now I have to do %P{starttime} %P{endtime} %P{duration}
to get timings on the component.
The only problem/addition
Title: log4j for Auditing
Mike,
First
of all I created and used a class called ThreadInfo (very similar to MDC that is
being talked about) to record user, component, request etc. So this gets logged
on every line of the log.
Secondly, I created priority levels called PERFORMANCE and TRANS
Hi all,
I need something like a SocketAppender, however I want to be able to specify
backup server(s). For example, if the socketAppender fails to connect to a
server/or send LoggingEvent on the wire, I want it to try the backup
server(s).
I was planning to write my own appender, is that a mista
t put shows a ? mark instead of the class name.
The conversion pattern has %F in it. Why does this happen?? is there any
solution??
Bharat
-Original Message-----
From: Seemantini Godbole [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 11:27 AM
To: 'LOG4J Users Mailing List
Sumit,
You
may want to design a class with all static methods which will do logging to
log4j. It could have a method such as
public
static void doInfoLog(String catName, String message)
{
Category cat =
Category.getInstance(catName);
//log the message to this category
}
Y
What was I thinking? Sorry, but I just saw synchronized around doAppend in
AppenderSkeleton. That really eliminates need for putting synchronized in
any of the sub classes. However, the question about messages getting mixed
still remains?
Thanks
-Original Message-
From: Seemantini
Hi All,
I really need help on some confusion surrounding a log I saw. I am using
DailyRollingFileAppender, and looked at a single line of log which had a
mish-mash combination of 3 to 4 log messages.
seems like three or 4 threads were competing to write to this file. We have
a JSP, servlet, EJB
Hi all,
I am trying to change a lot of our existing code so that everything uses
log4j. Now here is the problem. A lot of our existing code creates AppError
objects to signal that something wrong has happened. I thought it will be
nice to add logging in the constructor of this error object. That
I agree, I have a similar problem for doing %x{} and I think those methods
should be protested.
I too have copied the entire methods in my subclass.
Thanks
-Original Message-
From: Ernie Parker [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 11:00 AM
To: [EMAIL PROTECTED]
Subject
Hi all,
I wrote some classes to override Category, CategoryFactory etc. It looks
almost identical to classes we have in examples/appserver.
However I am stuck because of PropertyConfigurator. It seems like I have to
create/initialize categories in the code, otherwise if I let
PropertyConfigurato
IMHO it will be complicating matters if the SocketNode had to decipher
Categories and then look for config files.
However, you can get as granular as you want in that 127.11.11.1.lcf file
(package level/class level). For example, you could say
log4j.category.com.mycompany.Ejb1=WARN, Ejb1Log
...
When you say client group, do you mean different machines that are using
socketAppender?
If that is the case, you can give a directory as a command line argument
(see javadoc on SocketServer) to socketServer. In this dir you can put
several config files (hostname.lcf i.e, 192.215.113.16.lcf). The
plemented yet (to my knowledge).
Cheers,
Anders
Seemantini Godbole wrote:
>
> Hi all,
>
> For last couple of weeks I have been using log4j and is working very well
> for our logging needs. Ours is a typical J2EE architecture, with JSP,
> servlets, EJB combination.
>
> However, we
Hi all,
For last couple of weeks I have been using log4j and is working very well
for our logging needs. Ours is a typical J2EE architecture, with JSP,
servlets, EJB combination.
However, we need some client specific info such as the name of the user who
logged in, client ip address, request ty
Create a file named (ip address.lcf, i.e., 192.216.253.116.lcf. This is the
host that generated the log message and sent to SocketAppender) in a
directory on a machine where SocketServer is running. This file can contain
all the config info. IMHO, this is a good way as you can change the config
wi
ll to setSubject from?
Thanks for your help
- Original Message -
From: "Seemantini Godbole" <[EMAIL PROTECTED]>
To: "'LOG4J Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 11:10 AM
Subject: RE: dynamic subject with smtp appender
Could you use the setSubject method on smtp appender?
-Original Message-
From: Gray Jones [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 10:05 AM
To: LOG4J Users Mailing List
Subject: dynamic subject with smtp appender
Hello,
Does anybody know if you can somehow dynamically c
25 matches
Mail list logo