RE: logging to DB2

2004-12-15 Thread Nicko Cadell
Thanks. > -Original Message- > From: M. d'Entremont [mailto:[EMAIL PROTECTED] > Sent: 15 December 2004 20:40 > To: Log4NET User > Subject: Re: logging to DB2 > > DB2 8.2, a.k.a Stinger > > It's their most recent to date. Pretty much every thing > should be similar on old versions with

Re: logging to DB2

2004-12-15 Thread M. d'Entremont
DB2 8.2, a.k.a Stinger It's their most recent to date. Pretty much every thing should be similar on old versions with slight syntactic changes Marc Nicko Cadell wrote: Marc, Thanks for the schema and config. Can you tell me which version of db2 you have this working on? Many thanks, Ni

Pass LoggingEvent obj to web service

2004-12-15 Thread Simon Wallis
Hi, I'm trying to create a web service that will receive an array of LoggingEvent objects sent from a custom appender. I suppose this is a general .NET question on serialization, but what is the best way to do this? I tried playing around with the SoapFormatter class, which serializes an object

RE: Make all appenders asynchronous

2004-12-15 Thread Nicko Cadell
Simon, > I've written a couple of custom appenders: one logs events to > a web service and one makes a Remoting call. Both have an > attribute called Async. If set to true in the config file, > the appender will do the work in SendBuffer() or Append() > asynchronously. If set to false it will

RE: [Log4net-devel] Log an Exception

2004-12-15 Thread Nicko Cadell
Mike, Are you only logging an exception object or are you logging some message in addition to the exception? The log4net ILog interface supports methods like: Debug(object) Debug(object,Exception) Are you using the first or second method? log4net makes a distinction between the message (which i

RE: logging to DB2

2004-12-15 Thread Nicko Cadell
Marc, Thanks for the schema and config. Can you tell me which version of db2 you have this working on? Many thanks, Nicko > -Original Message- > From: M. d'Entremont [mailto:[EMAIL PROTECTED] > Sent: 11 December 2004 01:12 > To: Log4NET User > Subject: logging to DB2 > > I've got log4

RE: SecurityException using RemotingAppender

2004-12-15 Thread Nicko Cadell
Simon, If you are using .NET 1.1 you may have to set the typeFilterLevel to Full. See: http://www.gotdotnet.com/team/changeinfo/Backwards1.0to1.1/default.aspx# 0153 Nicko > -Original Message- > From: Simon Wallis [mailto:[EMAIL PROTECTED] > Sent: 14 December 2004 15:40 > To: log4net

RE: onlyFixPartialEventData - only need Logger Name

2004-12-15 Thread Nicko Cadell
Simon, The LocationInfo is made up of ClassName, MethodName, FileName and LineNumber. This is generated by capturing the current call stack and locating the method that called into log4net. Generating a stack trace for each logging call can have a performance impact on the application. Also due to

RE: Error using RemotingAppender: can't find assembly log4net

2004-12-15 Thread Simon Wallis
I re-jigged my whole logging framework so that the log4net code base remains untouched, and all my custom extensions are in a separate assembly. This approach has solved my problems. So, I recommend people leave the core log4net code alone. This is better design, makes upgrades easier, and would

RE: Route LoggingEvent object back into log4net

2004-12-15 Thread Nicko Cadell
Simon, If you have a LoggingEvent that you want log4net to process you can use the Log method on the ILoggerRepository interface. log4net.LogManager.GetLoggerRepository().Log(event); Nicko > -Original Message- > From: Simon Wallis [mailto:[EMAIL PROTECTED] > Sent: 14 December 2004 22:

Make all appenders asynchronous

2004-12-15 Thread Simon Wallis
I've written a couple of custom appenders: one logs events to a web service and one makes a Remoting call. Both have an attribute called Async. If set to true in the config file, the appender will do the work in SendBuffer() or Append() asynchronously. If set to false it will do it in the normal

RE: Viewing log4net XML documentation

2004-12-15 Thread Nicko Cadell
Mike, The XML doc is built into a compressed HTML help file using NDoc. This is included in the release download, see: log4net-1.2.0-beta8\doc\sdk\net\1.0\log4net-sdk-net-1.0.chm Nicko > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 14 December 2004 15:

RE: Getting the exception in a filter

2004-12-15 Thread Nicko Cadell
Bill, In 1.2 beta 8 it is not possible to retrieve the exception object from the LoggingEvent. Only a rendered string can be retrieved. This has been fixed in CVS with the addition of the ExceptionObject property. You can either: 1) Parse the rendered exception string for the data you need. 2) Mo

RE: DOMConfigurator Attribute

2004-12-15 Thread Nicko Cadell
Giri, Which version of log4net are you using? Which version of the runtime and C# compiler are you using? Have you tried fully qualifying the attribute: [assembly: log4net.Config.DOMConfiguratorAttribute(ConfigFileExtension="config",Wat ch=true)] Nicko > -Original Message- > From: Giri,

RE: nothing appearing on ConsoleAppender in web application

2004-12-15 Thread Nicko Cadell
Jerry, The ASP.NET runtime (aspnet_wp.exe) is not a console application, therefore it does not have a Console Window. The output of the ConsoleAppender goes to the System.Console.Out which by default is written to the attached Console Window. This is not the same thing as the Debug output window i