logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Faizan Ahmed" <afai...@gmail.com>
Subject Re: Chainsaw v2 configuration
Date Mon, 03 Jul 2006 12:20:57 GMT
Thanks Scott. That worked.

On 6/30/06, Scott Deboy <sdeboy@comotivsystems.com> wrote:
>
> 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
>
> sdeboy@comotivsystems.com
>
> www.comotivsystems.com
>
>
>
> -----Original Message-----
> From: Scott Deboy [mailto:sdeboy@comotivsystems.com]
> 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
>
> sdeboy@comotivsystems.com
>
> www.comotivsystems.com
>
>
>
> -----Original Message-----
> From: Faizan Ahmed [mailto:afaizan@gmail.com]
> 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] [tangyp@my.ibm.com 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] [
> tangyp@my.ibm.com a25sod001] getCountryXRef: country code xref loaded.
>
> Can anyone help me with the logformat.
>
> Thanks in advance.
> Faizan
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
It is useless to have a learned tongue but an ignorant heart. [Shaykh Abdal
Qadir al Jilani]

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message