Please note: As my earlier mail to the list got bounced, I have marked a
copy to you individually.
Sorry for that.
Hi,
I have following questions related to Unix Syslog Appender.
1. I have the following log4j properties file for my web based application,
wherein I have 3 appenders.
The first 2 a
Actually, I'm puzzled by one thing in the procedure Yoav outlines:
It seems clear to me that this change should be a change to the
DailyRollingFileAppender class. You say this would be included in the
contribs section of the distribution. But, of course it isn't possible
to split a class in thi
Vikram,
> 2. How do I get about listing it on the log4j site? According
> to the info on
> the website, I just need to send a message to this list. Right ?
Ceki is the one to update the main site with links, and he is on vacation
right now. He can do it when he comes back.
It is a good articl
okay, I can do that. I wondered how to contribute since I couldn't find
a CSV setup as is used with the other projects and didn't know the
procedure. I will look into it. Thanks.
Steve
-
Steve Cohen
Sr. Software Engineer
Ignite S
Hi,
I looked at the log file and there was nothing. Actually another appender
that logs to a flat file (without going thru syslog) worked all right.
Caizhi
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 11:37 AM
To: Log4J Users List
Subj
I will try, it's not that big a deal, it was more a question out of curiosity,
there are other ways that I can distinguish where the output is coming from.
Thanks
"Shapira, Yoav" wrote:
> Howdy,
> I'm afraid I can't offer more insight ;)
>
> Does the output change if you use
> private static fi
Hi,
What happened when you try this? (Without modifying syslog.conf)
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Zhu, Caizhi [mailto:[EMAIL PROTECTED]]
>Sent: Monday, August 12, 2002 11:35 AM
>To: 'Log4J Users List'
>Subject: unix syslog question
>
>Hi all,
>
>Ha
Howdy,
I'm afraid I can't offer more insight ;)
Does the output change if you use
private static final Logger logger =
Logger.getLogger(GdsBuilderEJB.class.getName());
?
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: David Hirst [mailto:[EMAIL PROTECTED]]
>Sent:
Hi all,
Has anyone worked with log4j syslog on unix? It hasn't worked for me. This
is the config file snipet I use:
Both methods are public in a class named GdsBuilderEJB, they also both share a
private static Logger variable shown below:
private static Logger logger = Logger.getLogger("GdsBuilderEJB");
"Shapira, Yoav" wrote:
> Hi,
> What's common to the methods that do or don't display the %F:%L ?
>
> Yoav
Thanks Doug.
If you have any questions about the article or the code, just shoot them off
to me.
Regards,
Vikram
- Original Message -
From: "Clifton, Doug" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, August 13, 2002 12:22 AM
Subject: Re: Article Info
>
Instead, a clearer name such as stdout, generalLogFile, or
whatever should be used.
>> Agreed and acknowledged.
a lot of people ask about where to put the config file, I would've
covered the default initialization procedure in more detail.
>> I deliberated on this for some time before decidi
Vikram - I must have missed the earlier posting. I have just had a quick look and the
section on "Tips and Tricks" is enough for me to give it a good rating. Like everyone
else on this list - I guess many of us are so caught up dealing with our own
"distractions" that sometimes the feedback i
Hi,
What's common to the methods that do or don't display the %F:%L ?
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: David Hirst [mailto:[EMAIL PROTECTED]]
>Sent: Monday, August 12, 2002 10:11 AM
>To: Log4J Users List
>Subject: Re: newbie logging question
>
>This is
Hi Vikram,
First of all, thank you for writing the article. All contributions are
welcome and it must have taken a chunk of time.
I like the section towards the end on NDC and MDC and their usage.
The examples (code and configuration) throughout the article were
decent. I would've advocate t
Vikram,
I read and downloaded the article this last weekend and I (as a newbie
to log4j) found the information very useful. I will know even more when
I get some time to actually test the code and examples rather than just
read about it. It, however, has become a piece I saved off for later
us
You are not asking fro filename and line number in your RollingFileAppender
pattern than how can you expect for filename and line numbers in log?
-Original Message-
From: David Hirst [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 9:40 AM
To: Log4J Users List
Subject: Re: newbie
Hi All,
I had put a link to a article I wrote on onjava.com.
(http://www.onjava.com/pub/a/onjava/2002/08/07/log4j.html) in an earlier
post.
1. I would really appreciate if I could get some honest feedback. :) This
was my first article online and I just want to know whether to stop now
before its
This is only happening in particular methods in particular classes. Some of the
methods will display the line number and then some will not (within the same
class)
"Shapira, Yoav" wrote:
> Hi,
> And so you would expect to to see the file and line number on standard
> out, but in not in your log
Hi,
And so you would expect to to see the file and line number on standard
out, but in not in your log file. Yet you say it doesn't come out on
the console, you get "?:?" instead, right? Does this happen regularly?
Only for particular methods?
Yoav Shapira
Millennium ChemInformatics
>-O
I had the very same trouble. The answered I received on the same question
was that it should work with any JAXP compliant parser. However, I have not
been able to get it to parse correctly using anything other than Crimson.
-Original Message-
From: Chris Hane [mailto:[EMAIL PROTECTED]]
S
log4j.rootLogger=debug, stdout, R
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
log4j.appender.
Hi,
Umm, why don't you write it? ;) It doesn't sound like it would be very
time consuming. The general process is:
- Write it
- Send a message to the list with the code, a unit test, a config
example, and release notes.
- Get people's feedback.
- If all things go well, it'll be included in the
Hi,
What does your layout conversion pattern for this appender look like?
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: David Hirst [mailto:[EMAIL PROTECTED]]
>Sent: Monday, August 12, 2002 9:06 AM
>To: [EMAIL PROTECTED]
>Subject: newbie logging question
>
>Hi,
>
Hi,
I've been attempting to use log4j in a J2EE application, bu going
thru the archives and online manual I've been able to create a couple
different loggers, however I'm stumped by some of the output
DEBUG [Thread-40] (GdsBuilderEJB.java:59) -
+++
DEBUG [Thread-40]
Figures that I would get it working after asking for help. Turns out it
was the version of the xml parser. While chainsaw will startup with
xerces-1.x it will not parse the file. I tried the XercesJ-2.x (the latest
one) and could not get it to work. I did get it to work with the crimson
p
Hopefully this is a quick question. I'm trying to get Chainsaw to read a
file created with XMLLayout. I've read the XMLLayout javadoc and have not
been able to figure out exactly what I need to do to modify the output so
that chainsaw will read the file in. I will admit that I am not an XML
27 matches
Mail list logo