I changed LogFilePatternReceiver's parsing to support matches with zero or more
characters for fields instead of one or more characters...available in svn
trunk of the receivers module.
Scott Deboy
COMOTIV SYSTEMS
111 SW Columbia Street Ste. 950
Portland, OR 97201
Telephone: 503.224.7496
Sorry, the keyword for the message field in LogFilePatternReceiver is MESSAGE
not MSG.
Also, if there is no character in between the delimiters, trying to match NDC
(or even [*]) won't match - they're relying on at least one character..
So, use this:
TIMESTAMP LEVEL LOGGER * - MESSAGE
If you
I tried the safest option, but it didn't worked.
TIMESTAMP LEVEL LOGGER * - MSG
I even tried * - MSG, but the same error. I am not sure, what is wrong with my
approach.
Please guide further.
- Original Message
From: Scott Deboy <[EMAIL PROTECTED]>
To: Log4J Users List
Sent: Monday,
Your example logging event doesn't match the conversion pattern (it looks like
NDC comes after logger). Also, I missed the brackets around NDC..
Try this:
TIMESTAMP LEVEL LOGGER [NDC] - MSG
I'm not sure this will match though because there may be no text between the
brackets for NDC...if that
Hello,
I tried the details in the mail below. But it is still giving similar error.
For all the logs it is saying found non-matching line: followed by the actual
row in the log file.
found non-matching line: 04-18-07 02:01:01 DEBUG tasks.AutoConfigTask [] -
Beginning preTask() in AutoConfigTask
If you're using log4j 1.2.15 with the log4j extras companion, you can
use an ExpressionFilter and exclude events using this expression:
EXCEPTION exists
To exclude all exceptions
Or
EXCEPTION ~= org.hibernate.ObjectNotFoundException
To exclude only exceptions with that string in the exceptio
timeStampFormat=MM-dd-yy HH:mm:ss
logFormat=TIMESTAMP LEVEL NDC LOGGER - MSG
filter: don't define it unless you have a really big log file and only
want to see a subset of the logging events (note the default chainsaw
tab rolls the events, only displaying the most recent 5000..you can
change this
Hello Users,
I am using log4J and now I want to use chainsaw to see the logs. I configured
log4J using following configurations.
log4j.appender.logFile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.logFile.File=D:/abc.log
log4j.appender.logFile.DatePattern='.'-MM-dd
log4j.appender
Sergio skrev den 21-07-2008 22:57:
Hi,
I have the annoying uncatchable ObjectNotFoundException from hibernate
on my log with big stack traces. I want to completely suppress this
exception from my log. I tried to find something about filters on
Log4J, but I think that is not the correct way t
Hi,
I have the annoying uncatchable ObjectNotFoundException from hibernate
on my log with big stack traces. I want to completely suppress this
exception from my log. I tried to find something about filters on Log4J,
but I think that is not the correct way to do it. Any ideas on how I can
supp
10 matches
Mail list logo