RE: XmlLayoutSchemaLog4j timestamp

2004-08-19 Thread Nicko Cadell
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

RE: SMTPAppender Placing variables in Subject field

2004-08-19 Thread Borton, Anthony
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:

Re: New to log4net - specifying config file in AssemblyInfo.vb

2004-08-19 Thread Rich Dudley
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

RE: XmlLayoutSchemaLog4j timestamp

2004-08-19 Thread Mike Blake-Knox
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

RE: SMTPAppender Placing variables in Subject field

2004-08-19 Thread Nicko Cadell
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

RE: XmlLayoutSchemaLog4j timestamp

2004-08-19 Thread Nicko Cadell
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

RE: MemoryAppender Example

2004-08-19 Thread Nicko Cadell
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

RE: New to log4net - specifying config file in AssemblyInfo.vb

2004-08-19 Thread Nicko Cadell
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

RE: log4net with asp.net

2004-08-19 Thread Nicko Cadell
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

Question : versioning.

2004-08-19 Thread Magil, Mike
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