Mike,
So if we keep s_date1970 as UTC and just convert the event TimeStamp to
UTC before getting the difference it should work right:
DateTime s_date1970 = new DateTime(1970, 1, 1);
...
TimeSpan timeSince1970 = loggingEvent.TimeStamp.ToUniversalTime() -
s_date1970;
That should be equivalent t
Thanks Nicko,
A little bit more thinking and I would have thought of that :p
The SimpleSMTPAppender will come in handy with FATAL level events.
Regards
Anthony
-Original Message-
From: Nicko Cadell [mailto:[EMAIL PROTECTED]
Sent: Friday, 20 August 2004 04:42
To: Log4NET User
Subject:
That did the trick. Thanks!
On Thu, 19 Aug 2004 18:22:45 +0100, Nicko Cadell <[EMAIL PROTECTED]> wrote:
> Rich,
>
> To be honest VB.NET syntax isn't my strong point, but I think that you
> need to use the := when specifying the named property. e.g.:
>
>
>
>
> Nicko
>
>
>
> > -Original
Nicko,
I found I was having problems with daylight savings time and needed to
change the calculation (but not the static s_date1970). I'm now using:
// Calculate the timestamp as the number of
milliseconds since January 1970 UTC/GMT
// Note that the
Anthony,
The SmtpAppender is designed to send several events in a single email.
That makes it rather difficult to know which event to pull the subject
from: first event, last event, event with highest level, what about
multiple events at the highest level. etc... Currently we don't try to
do anyth
Mike,
I must have been up late when I wrote that! The CVS code has been
changed to:
DateTime s_date1970 = new DateTime(1970, 1, 1);
Which should do the job.
Cheers,
Nicko
> -Original Message-
> From: Mike Blake-Knox [mailto:[EMAIL PROTECTED]
> Sent: 17 August 2004 14:38
> To: 'Log4NE
Kevin,
The LoggerCreatedEvent is used to hook the creation of a Logger (ILogger
/ ILog) rather than for individual logging events. Currently there isn't
a global handler that gets fired whenever an event is logged.
The only way to catch logging events is using an appender. If the
behaviour of the
Rich,
To be honest VB.NET syntax isn't my strong point, but I think that you
need to use the := when specifying the named property. e.g.:
Nicko
> -Original Message-
> From: Rich Dudley [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2004 20:09
> To: log4net-user@logging.apache.org
> Subj
Ismail,
If you enable log4net internal debugging you should see log4net
initialising, and if there are any errors then they will also be
displayed there.
http://logging.apache.org/log4net/release/manual/faq.html#internalDebug
Nicko
> -Original Message-
> From: Ismail Mayat [mailto:[EMAI
Title: Question : versioning.
We (our group) have been thinking about deployment and third party libraries as we're looking at using such products as log4net and TRA-SDK, etc. Our mother product dumps all the assemblies for a build into the bin directory of the web application. One potential
10 matches
Mail list logo