Basically, my exceptions get logged only partially, like this:
ICSharpCode.SharpZipLib.SharpZipBaseException: Unexpected EOF at
ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputBuffer.Fill
() at
ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputBuffer.Read
LeByte()
I'm not very familiar with the Event Log so bear with me...
I looked at some entries in the Event Log on my computer and saw that
for similiar messages, the Event ID was always the same. I thought the
Event ID was similiar to a primary key in a database. In other words I
thought that I could someh
Even after
log4net.ThreadContext.Properties("EventId") = 5
log4net.ThreadContext.Stacks("EventId").Push("5")
log.Error("Error Login Page.", ex)
I am getting this error.
The description for Event ID ( 0 ) in Source ( SSOPWebError ) cannot be
found. The local computer ma
That doesn't look to bad, you're correct. But I'll have to read in the SDK
about use of these ThreadContext properties; I'm still too new around here
to see how such properties pass through to an EventLog.WriteEntry() or
whatever. Thank you once again.
As long as you're asking: yes, I propose that
The extension folder name may be misleading. The implementation isn't
very complex:
public void Info(int eventId, object message, System.Exception t)
{
if (this.IsInfoEnabled)
{
LoggingEvent loggingEvent = new LoggingEvent(...);
loggingEvent.Properties["EventID"] = eventId;
Logger.Log(log
Ah, an extension. I was hoping to avoid that. You'd think that'd be part of
the core. Nevermind, though. I'll check it out - and thank you very much.
WILLIAM BARNUM
[EMAIL PROTECTED]
-Original Message-
From: Ron Grabowski [mailto:[EMAIL PROTECTED]
Sent: Friday, September 23, 2005 1:0
Do you want to do something like this:
public interface IEventIDLog : ILog
{
void Info(int eventId, object message);
void Info(int eventId, object message, Exception t);
void Warn(int eventId, object message);
void Warn(int eventId, object message, Exception t);
void Error(int eventId,
I'm logging with EventLogAppender, and setting the EventSource field in the
Application Log using ApplicationName property.
But I would like to log my own EventIds as well. Is there a way to do this
with log4net? I'm not talking about putting something in the message text,
but setting the actual
This is not a bug exactly . more like a garbage collection issue I notice
that has to do with EventLogAppender. And it's certainly a small issue, but
.
I notice that when I execute EventLogAppender with a security account that
doesn't have enough authority to set up its own EventSource in the Even
Another logging package for .Net is NLog:
http://nlog.sourceforge.net/
The author of that package is working on an NLogViewer program that is
a single file executable (i.e. NLogViewer.exe). Its not complete yet
but when it is it will be similiar to Chainsaw. The version in source
control proces
Hi,
> Do you know about Chainsaw:
>
> http://logging.apache.org/log4j/docs/images/chainsaw-fullscreen.jpg
Yes, I know this tool. In fact, this tools was the biggest inspiration ;-)
Since we use out log viewer also on computers used by customer we cannot
enforce they have
a Java Runtime installe
Do you know about Chainsaw:
http://logging.apache.org/log4j/docs/images/chainsaw-fullscreen.jpg
Its a log viewer that is able to display logging events in real-time
from UDP, files, etc. sources. Its very configurable. You're able to
restrict messages from just certain loggers, certain levels, e
Hi there,
First of all I have to say that Log4Net is the best logging library I have ever
seen. Our company evaluated between 5 and 10 logging apis, some of them were
even commercial ones. But Log4Net really kicks ass! :-)
For our company I have written a log viewer that listens on UDP. This to
I'm a log4net newbie myself, but here's a more complete illustration that is
variation on that theme using store procs. I just created it (quite
quickly, I might add; I love this thing).
I log to a SQL Server table using custom fields and a stored proc. The
AdoNetAppender definition is below. The
AS SOON AS U LOGIN
set
log4net.MDC.Set("User", HttpContext.Current.User.Identity.Name)
In log4net.mdc you set all your custom fields and values it can pick up
from.
In your configuration file use
hope this helps.
Shiva Ganapatiraju
New York State
Office of Children & Family Services
Hi,
When I using log4net's AdoAppender,I have a problem, because the
log4net framework default provide logger,logtime,logLevel,message,etc,but I
want to adds extra information like the username, department, etc.so what
can I do? I don’t know how to implement it .can you help me ? thanks ver
16 matches
Mail list logo