Correction..everything is working fine - you have to set your timestampformat 
to match your input:

logformat:
[financing_tools_gcps] [LOGGER] [TIMESTAMP] [LEVEL] [Severity PROP(SEVERITY)] 
[NDC] MESSAGE

timestampformat:
MM/dd HH:mm:ss

My previous post skipped over the LEVEL field...

Your logformat should work fine as well:
[*] [CLASS] [TIMESTAMP] [LEVEL] [*] [*] MESSAGE

I'd suggest you use LOGGER instead of CLASS though, because then you get to use 
the logger tree for filtering (of course, you still need to set timestampformat 
correctly).

Hope this helps.

Scott Deboy
COMOTIV SYSTEMS
111 SW Columbia Street Ste. 950
Portland, OR  97201

Telephone:      503.224.7496
Cell:           503.997.1367
Fax:            503.222.0185

[EMAIL PROTECTED]

www.comotivsystems.com



-----Original Message-----
From: Scott Deboy [mailto:[EMAIL PROTECTED]
Sent: Thu 6/29/2006 6:06 AM
To: Log4J Users List
Subject: RE: Chainsaw v2 configuration
 
This works:

[financing_tools_gcps] [LOGGER] [TIMESTAMP] *Severity * [NDC] MESSAGE

It's getting confused by the brackets around the severity field (there must be 
a bug in the parsing logic).

Scott Deboy
COMOTIV SYSTEMS
111 SW Columbia Street Ste. 950
Portland, OR  97201

Telephone:      503.224.7496
Cell:           503.997.1367
Fax:            503.222.0185

[EMAIL PROTECTED]

www.comotivsystems.com



-----Original Message-----
From: Faizan Ahmed [mailto:[EMAIL PROTECTED]
Sent: Thu 6/29/2006 12:41 AM
To: log4j-user@logging.apache.org
Subject: Chainsaw v2 configuration
 
Hi

I'm trying to configure chainsaw v2 and found problem with log format,

Here's the format of the log files we have,

[financing_tools_gcps] [CountryCodeXRefProcess_impl] [06/29 03:29:25]
[DEBUG] [Severity 4] [EMAIL PROTECTED] a25sod001] getCountryXRef: country
code xref loaded.

Here's the entry in log4j.ini,

log4j.appender.profileLog.layout.ConversionPattern=[financing_tools_gcps]
[%c{1}] [%d{MM/dd HH:mm:ss}] [%p] [Severity %s] [%x] %m %n

I tried this in logFormat,
[*] [CLASS] [TIMESTAMP] [LEVEL] [*] [*] MESSAGE

But got the following error,

found non-matching line: [financing_tools_gcps]
[CountryCodeXRefProcess_impl] [06/29 03:29:25] [DEBUG] [Severity 4] [
[EMAIL PROTECTED] a25sod001] getCountryXRef: country code xref loaded.

Can anyone help me with the logformat.

Thanks in advance.
Faizan




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to