Externalizing Roll Policy (Was: Compression tool)

2006-03-03 Thread Göran Roseen
I just browsed log4j's documentation a little, and came across their "ExternallyRolledFileAppender". It is a file appender that listens to a port, and when a certain signal comes through, it rolls the file (i.e. closes the current file, renames it and starts over with a new file). I guess this is

RE: Log4Net Viewer

2006-02-13 Thread Göran Roseen
Hi Richard!   I would very much like to see what you have. I will do my best to give you constructive feedback...   There are two major log viewers out there today;   Chainsaw (http://logging.apache.org/log4j/docs/chainsaw.html) - which in my opinion is too focused on log4j and an Apa

RE: Compression tool

2006-02-03 Thread Göran Roseen
g rotating tools for Windows... In my opinion, the rolling file appender as already grown too complex, with several configuration parameters whose side effects in cooperation with other parameters are hard to foresee without reading the source. /Göran Roseen <[EMAIL PROTECTED]> Ps. If a

RE: how to handle this error?

2005-12-12 Thread Göran Roseen
I would suggest that you try to find out who is locking the file.   A tool such as Handle (Freeware) will tell you that in a split sec. (http://www.sysinternals.com/utilities/handle.html)   Then you can see if it is another instance of log4net, or if it is someone/something trying to re

RE: Programatically changing the logger for NHibernate

2005-11-28 Thread Göran Roseen
Philip Nelson wrote: "And, I can use injection techniques to add logging setup to my apps with minimal coding." This sounds...eh, interesting! Would you care to elaborate on that? /Göran Roseen

RE: PatternLayout - add time increment

2005-11-22 Thread Göran Roseen
r specifies the type of data, e.g. logger, level, date, thread name." "A conversion character" is not correct any more is it? Sincerely, Göran Roseen -Original Message- From: Urban Jaroslav, Ing. [mailto:[EMAIL PROTECTED] Sent: den 22 november 2005 10:03 To: log4net-

RE: Checking IsDebugEnabled before calling Debug()?

2005-11-18 Thread Göran Roseen
Yes, the reason is that sometimes it takes a while to generate the argument to log.Debug(). If your code looks something like: log.Debug(CallReallySlowComponentAndGenerateAMessage()); you would of course benefit from using if (log.IsDebugEnabled) log.Debug(CallReallySlowComponen

RE: PatternLayout - add time increment

2005-11-08 Thread Göran Roseen
How about %timestamp? >From the documentation: "Used to output the number of milliseconds elapsed since the start of the application until the creation of the logging event." /Göran -Original Message- From: Urban Jaroslav, Ing. [mailto:[EMAIL PROTECTED] Sent: den 8 november 2005 12:24

RE: What do I need to do to get rid of this error? Please help

2005-11-07 Thread Göran Roseen
Sorry, the line became more complicated than necessary (that's what I get for cut&pasting shamelessly from the documentation).   It should say:   XmlConfigurator.Configure(new FileInfo("logging.config"));   From: Göran Roseen [mailto:[EMAIL PROTECTED]] S

RE: What do I need to do to get rid of this error? Please help

2005-11-07 Thread Göran Roseen
>Ramaa Davanagere wrote: >"I can't use the config file because this component is being used as an interop component and all the VB components (20+) use this interop component for Error >tracing and logging. Interops don't handle the config files very well. Hence I am using an xml file (as

RE: different object instances

2005-11-04 Thread Göran Roseen
The really simple solution is to name the loggers when you create them, i.e.: public class myClass { private ILog loginst; private static int memberCount = 0; public myClass() { loginst = LogManager.GetLogger("myClass." + memberCount++.ToString());

RE: How to get the log level and other config info programmatically

2005-11-03 Thread Göran Roseen
  Well, the ILog interface does have the IsEnabled methods, which will solve most situations where you need to address current log level.   i.e. if (log.IsDebugEnabled) { log.Debug("Entry number: " + i + " is " + entry[i]);}   /Göran   From: Shireesh Thanneru [mailt

RE: Strong name and Log4net

2005-09-02 Thread Göran Roseen
trong name and Log4net I made the change as you described below [assembly: AssemblyKeyFile("log4net.snk")] and I still get the same error message. I'm using C#. - Ramaa -Original Message- From: Göran Roseen [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 20

RE: Strong name and Log4net

2005-09-02 Thread Göran Roseen
Do you reference the strong name file in the Assembly Info? In AssemblyInfo.cs (if you use C#) there is an attribute [assembly: AssemblyKeyFile("")]. Replace the empty string with the name of you file. /Göran -Original Message- From: Ramaa Davanagere [mailto:[EMAIL PROTECTED] Sent: de

RE: Remoting architecture

2005-08-26 Thread Göran Roseen
the > decision wether to log or not will be done, if the logging > level, filters etc is set in the config file on another machine. > > * Minimal extra "fuzz" (managing clients and servers and > config files spread over a big organizations many servers) > > So wha