Re: Question about the RollingFileAppender

2006-04-19 Thread Matthew Brown
Random question, but is the "+" in "FileAppender+MinimalLock" some sort of special notation? Haven't seen this before... And I wish I had realized there was an ExclusiveLock lockingtype I could use back when I was working on an application in which we noticed it was slowing down considerably becau

Re: How to log a namespace?

2006-04-19 Thread Matthew Brown
If you name your loggers after your class's full name, this works out naturally. http://logging.apache.org/log4net/release/manual/introduction.html#hierarchy Getting a logger with the name "Namespace1.Namespace2.ClassName" will add "Namespace1", "Namespace1.Namespace2", and "Namespace1.Namespace2

Re: logging stops under wwwroot

2006-04-19 Thread Matthew Brown
Can you share your logging configuration?On 4/19/06, ruchika baruah <[EMAIL PROTECTED]> wrote: Hi    I am having a problem with Log4net. I am using log4net 1.2.0.  I have a asp.net , c# web application running in  windows2000 server. When the application is placed in any folder and created a virtua

Re: Loggin to multiple appenders

2006-04-06 Thread Matthew Brown
I believe the proper way to do this is to add a filter to each appender to filter based on level, and then attach both appenders to the root logger http://logging.apache.org/log4net/release/manual/configuration.html#filters            On 4/6/06, Saurabh Dani <[EMAIL PROTECTED]> wrote: Greetings

Re: Logging of the errors

2006-04-06 Thread Matthew Brown
Does RollingFileAppender support writing files through http? I doubt that it does. You should configure your RollingLogFileAppender to point to a directory (with c:\blah\blah) syntax or look into using a network-aware appender like RemotingAppender, etc. On 4/5/06, Ganapatiraju, Shiva (OCFS) <[EMAI

Re: Class Library Logging

2006-04-03 Thread Matthew Brown
Is there a reason why there are no appender-ref's in the root element? I would start there...I think the next step someone would ask is if you see anything using the internal log4net logging. On 4/3/06, Christopher Quest <[EMAIL PROTECTED]> wrote: Hi,   I am using V1.2.0-beta8, on a test .D

Re: Issues using from .net debugger

2006-03-09 Thread Matthew Brown
What failed to start up? Your app, or the logging?You'll really need to share your log4net configuration and some examples of how you are configuring the log4net system. I've used log4net on dozens of projects and never seen it cause a defect in the app itself. On 3/9/06, Charles T. Schwope <[EMAIL

Re: Log4Net Viewer

2006-02-14 Thread Matthew Brown
Sorry for the newbie question, but can anyone point me in the direction of a tutorial on how to get Chainsaw working with log4net files? I'm just using a simple (Rolling) LogFileAppender... On 2/13/06, Scott Deboy <[EMAIL PROTECTED]> wrote: Hi Richard, Göran:Göran Roseen roseen.se> writes:>> H

Re: Performance Issues - log4net with Visual Basic 2005

2006-02-07 Thread Matthew Brown
Are you by any chance using the MinimalLock attribute?But out of the last you gave, I would assume SMTP to be the most "blocking" of all..On 2/7/06, Romil Garg <[EMAIL PROTECTED]> wrote:Hi, I am using log4net with Visual Basic 2005 and was wondering if thereare any performance issues with

Re: ASP.NET starter help.

2006-02-02 Thread Matthew Brown
e that I changed back to ASP tracklistener. > > In one of my pages (inside the page_load) I have: > > log4net.ILog log = log4net.LogManager.GetLogger("productinfo1"); > log.Info("Page_Load"); > > Is there any example of an ASP.Net project that has the information

Re: ASP.NET starter help.

2006-01-31 Thread Matthew Brown
If you have an assembly attribute [assembly: log4net.Config.XmlConfigurator(ConfigFileExtension="log4net", Watch=true)] then there is no need to manually call Configure() later in your code. In fact, I would guess that that second call to Configure was the problem that prevented any logging (alon

Re: execution takes in 1 minute when enable logging

2006-01-20 Thread Matthew Brown
I don't think anyone is going to be able to help you without some examples from the code, your log4net configuration, etc... On 1/20/06, Elio B <[EMAIL PROTECTED]> wrote: > hi, i have a single line of code that returns an ArrayList, when logging is > enabled that line takes about 1 minute to compl

Re: newly created logfiles are locked. Why?

2006-01-16 Thread Matthew Brown
Ramaa you should probably note though that the constant locking and unlocking has a real noticable effect on performance, at least at DEBUG settings, at least in my experience. On 1/16/06, Niall Daley <[EMAIL PROTECTED]> wrote: > Ramaa, > The files are locked for performance reasons. Lock

Re: VS 2005 support

2006-01-11 Thread Matthew Brown
I don't remember ever having a problem using log4net 1.2.9 from a VS 2005 project On 1/11/06, Poquette, Dave <[EMAIL PROTECTED]> wrote: > > > Do you have a timeframe of when you will be supporting VS 2005? > > > > > Dave Poquette > Information Systems > > Quad/Med LLC > > Sussex, Wisconsin >

Re: Manipulating the configuration programmatically

2006-01-04 Thread Matthew Brown
The programmatic way is to use ConfigureAndWatch, or set Watch=true in your assembly attributes. Why bother to re-invent the wheel? On 1/4/06, Ofri Sela <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I would like to write a simple UI tool above the log4net configuration that > will basically allo

Re: Multiple logs?

2005-12-30 Thread Matthew Brown
Is Class1 a logger or a class that happens to have a logger? Either way, you're going to want to create different appenders for the different log files. Have you looked into using a config file to handle configuration? Much easier. On 12/30/05, dh <[EMAIL PROTECTED]> wrote: > Hi all, > > Until

Re: log4net exception handling

2005-12-12 Thread Matthew Brown
ogging has stopped because of the File Lock problem so that he can take action. How do I solve this problem?   Bottom line, I need to notify the administrator if the logging has stopped working.   -Original Message- From: Matthew Brown [mailto:[EMAIL PROTECTED]] Sent: Monday, Dece

Re: log4net exception handling

2005-12-12 Thread Matthew Brown
For most people, it's far more annoying for the application to fail because of a logging error than because of a true application error: http://logging.apache.org/log4net/release/faq.html#reliabilityIs log4net a reliable logging system?No. log4net is not reliable. It is a best-effort and fail-stop

Re: log4net logging level INFO or DEBUG causes the web application to end

2005-12-06 Thread Matthew Brown
Do you get any sort of exception logged anyway? What does "the application ended" mean exactly with your problem? With Asp.NET, usually that means that the application has restarted.. On 12/6/05, Greg Abernethy <[EMAIL PROTECTED]> wrote: > I have an asp.net web application that uses log4net. I re

Re: Log4net version 1.2.0.30714

2005-12-05 Thread Matthew Brown
Is there any reason why 1.2.9 hasn't been given the "final" tag yet? Seems to me like most people are using this beta9 release as if it was final anyway... On 12/5/05, Lansdaal, Michael T <[EMAIL PROTECTED]> wrote: > > This version was labelled as v 1.2.0 beta 8 and is the latest release for > 1.2

Re: Programatically changing the logger for NHibernate

2005-11-25 Thread Matthew Brown
Why are you not using a config file? That would be the (far) easiest way...On 11/25/05, Philip Nelson <[EMAIL PROTECTED] > wrote:I had added a configuration that built my loggers in code only and all was well (no xml!). Later though, I found out that NHibernate is doing something bad,logging except

Re: web.config problem

2005-11-22 Thread Matthew Brown
Wolfgang, Do you have a call to XmlConfigurator?On 11/22/05, Wagner, Wolfgang (LfF-R) <[EMAIL PROTECTED] > wrote:hi all!i have a problem configuring the log4net rollingfileappender. my application is structured as followed:web_root+-application main +-bin +-main  +- log.txt  +- . (all the othe

Re: Log4Net file locking

2005-11-22 Thread Matthew Brown
Just a warning though, in my experience with MinimalLock, it slows down execution of the program significantly (as log4net has to lock the file, write it, unlock it, repeat)On 11/22/05, Georg Jansen <[EMAIL PROTECTED]> wrote: Hi,You can try to change the lock level:(This must be inserted in the con

Re: Checking IsDebugEnabled before calling Debug()?

2005-11-18 Thread Matthew Brown
"computationally expensive", i.e., concatenating stringsOn 11/18/05, Castrianni, Chris {PBSG} < [EMAIL PROTECTED]> wrote:Good morning Tom,My understanding is that you should use IsXXXEnabled for situations where "message" is computationally expensive to create.--Chris-Original Message-From:

Re: RollingFileAppender truncates logfile at midnight

2005-11-15 Thread Matthew Brown
You should remove . I think the documentation might be a little confusing, but in my experience, under this setting the RollingFileAppender will only write to that one file, and not make any backups.On 11/15/05, Moss, Barney <[EMAIL PROTECTED]> wrote: I use the RollingFileAppender to write a logfi

Re: log files get reset at 12:00 noon every day

2005-10-28 Thread Matthew Brown
Isn't datePattern the parameter to specify when the rollover should occur? If it is, you have it set to daily. Not sure why it would choose 12pm rather than 12am but I am curious what effect the "log" string would have on that... On 10/27/05, Simon Wallis <[EMAIL PROTECTED]> wrote: > Hi, > > Thi

Re: internal debugging.

2005-10-27 Thread Matthew Brown
No config files are allowed? That sounds like a nightmare of a project :( On 10/27/05, Ramaa Davanagere <[EMAIL PROTECTED]> wrote: > > > > > > All the setting to enable log4net internal debugging should be done via > code. No config files are allowed. > > > > > -Original Message- > From:

Re: Inability to use EventLogAppender with ASPNET

2005-10-12 Thread Matthew Brown
at ApplicationName > element jam something nice that you want into the 'Source' field in the > EventLog, but if access to the registry is a problem, ... > > -BillyB > > -Original Message- > From: Matthew Brown [mailto:[EMAIL PROTECTED] > Sent:

Re: Inability to use EventLogAppender with ASPNET

2005-10-12 Thread Matthew Brown
ike the following (although the appender config is from a > slightly older version of log4net): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > - Original Message -

Inability to use EventLogAppender with ASPNET

2005-10-10 Thread Matthew Brown
With log4net internal debugging turned on, an attempt to create an EventLogAppender for a web application is failing: [3616] log4net: XmlHierarchyConfigurator: Setting Property [Layout] to object [log4net.Layout.PatternLayout] [3616] log4net: XmlHierarchyConfigurator: Setting Property [LogName] t

Re: Negate a filter

2005-09-29 Thread Matthew Brown
Take a look at the AcceptOnMatch property.On 9/29/05, Søren M. Olesen <[EMAIL PROTECTED]> wrote: HiIs it possible to negate a filter. I.e. instead og letting matched througt, it should stop matched from getting through.Lets say I want to remove lines containing the word SQL from my log, how doI se

Re: DB logger doesn't log complete exceptions!

2005-09-25 Thread Matthew Brown
A 4000 character column seems ridiculously large anyway, even if you went with varchar to save space (as Georg pointed out, a single row in that table would take up 8k of disk space). Why not just use text columns?On 9/25/05, Georg Jansen <[EMAIL PROTECTED]> wrote: HiWhen I tried to run your sql c

Re: log4net and IIS Application Pool

2005-09-13 Thread Matthew Brown
Eric, How are you configuring the logger(s)?On 9/13/05, Eric Fetzer <[EMAIL PROTECTED]> wrote: Hi all!  Sorry if this has been discussed before, I'mnew to this user group and don't know how to search asof yet.We are using log4net for logging (go figure) and havea problem every other day.  We've na