Customized log4net, would like feedback/advice

2005-06-24 Thread Frode Breimo
Hi I've made a couple of customizations to log4net and would like to hear people's opinion on my solution. When logging I've made extensive use of properties to put data in specific database fields. These properties must (as far as I know) be placed in GlobalContext, ThreadContext or Logical

Problem with empty properties and AdoNetAppender

2005-06-08 Thread Frode Breimo
Hi I'm using LogicalThreadContext.Properties to store additional data to be logged to my database. There is a problem however, with properties that haven't been set, or have been set to null values. When building the command text log4net inserts the string value "(null)" for these properties.

Re: Calling method

2005-06-08 Thread Frode Breimo
Hi I've only started looking at log4net myself and I'm using a similar approach. I started out with exactly the same solution as you describe, and of course I got the same result. What I did was to add a GetLogger method to my Logger class, this takes a string parameter containing the name o

Re: Using parameters with ADONetAppender and FireBird

2005-05-26 Thread Frode Breimo
holders to use an @ sign as their prefix: INSERT INTO TESTTABLE (TESTSTRING) VALUES (@logText) Your parameter would look something like this: Let us know if you're able to get it to work. --- Frode Breimo <[EMAIL PROTECTED]> wrote: Hi I''ve been worki

Using parameters with ADONetAppender and FireBird

2005-05-26 Thread Frode Breimo
Hi I''ve been working for two days now trying to send log information to my FireBird database using SQL parameters, but I've been unable to find any helpful examples or articles and could really use some help. For testing purposes I'm just using a very simple table called TESTTABLE with a si