Re: Wrapping Log4Net

2009-07-24 Thread Michael Schall
ose(); >        } > } > > I think new log entries can not be added to the top of file. > Radovan Raszka > > -Původní zpráva- > Od: xalex [mailto:a...@pixafe.com] > Odesláno: 23. července 2009 17:44 > Komu: log4net-user@logging.apache.org > Předmět: Re: Wra

RE: Wrapping Log4Net

2009-07-23 Thread Radovan Raszka
x [mailto:a...@pixafe.com] Odesláno: 23. července 2009 17:44 Komu: log4net-user@logging.apache.org Předmět: Re: Wrapping Log4Net Hi, i did not find it in the documentation: Is it possible to configure appenders by coding without configfiles? How do i get the appenders which are currently configured? I

Re: Wrapping Log4Net

2009-07-23 Thread xalex
Hi, i did not find it in the documentation: Is it possible to configure appenders by coding without configfiles? How do i get the appenders which are currently configured? I would like to change the output destination file of a FileAppender. And last question: is it possible to configure a FileAp

Re: Wrapping Log4Net

2009-07-23 Thread xalex
Hi, first of all thanks to all the interesting input! I want to clearify my requirements and intentions: - the exchange of log4net is not really planned, it should be only possible - references to the log4net assembly must be set to a single assembly which is used in all of our projects - the us

RE: Wrapping Log4Net

2009-07-22 Thread Roy Chastain
AM To: Log4NET User Subject: Re: Wrapping Log4Net awesome, can you by any chance post your ILoggerRepository implementation (KMS.Core.Log4Net.KmsLogger) ? On Tue, Jul 21, 2009 at 11:12 PM, Roy Chastain wrote: > I think we have done what you want, plus a little bit.  I have an > Interface

Re: Wrapping Log4Net

2009-07-22 Thread steven higgan
t; This results in an output that looks like with the Full Qualified class > name and method name inserted into the trace.  In the example below, I > have the Day, Time Threadid class name and finally my text "- Entered". > Of couse the formatting is done via the config as nor

RE: Wrapping Log4Net

2009-07-21 Thread Roy Chastain
og4Net from the calling projects. They still care. -- Roy Chastain -Original Message- From: xalex [mailto:a...@pixafe.com] Sent: Tuesday, July 21, 2009 1:40 AM To: log4net-user@logging.apache.org Subject: RE: Wrapping Log4Net Hi James, yes, this works of course, but there are 2 drawbac

Re: Wrapping Log4Net

2009-07-20 Thread xalex
thanks Bruno, i think this is exactly what i need, i will have a closer look Alex Bruno Baia-2 wrote: > > Hi, > > Did you look at Common.Logging ? > > http://netcommon.sourceforge.net/ > > > - Bruno > > -- View this message in context: http://www.nabble.com/Wrapping-Log4Net-tp24551728

RE: Wrapping Log4Net

2009-07-20 Thread xalex
Hi James, yes, this works of course, but there are 2 drawbacks: you need to request the logger to the type for every single call. Instead of doing so, i would like to instanciate as static variable per type only once like this: private static readonly ILog logger = LogManager.GetLogger(typeof(Pro

Re: Wrapping Log4Net

2009-07-20 Thread xalex
Hi Daniel, first of all, thank you for this hint. My goal is to use my simple ILog interface (as i sketched) from the application code and to get the logger by calling ILog logger = LogManager.GetLogger(typeof( typeof)); I would like to get this according to the current class because I want to c

RE: Wrapping Log4Net

2009-07-20 Thread James Green
Hi, Despite what you have been told already I have wrapped log4net, if you do it right it is fine imho. I wrapped log4net since we need to consume it in scenarios where we absoloutely cannot have a plethora of config files kicking around all the time simply to enable some logging in the consuming

Re: Wrapping Log4Net

2009-07-20 Thread Bruno Baia
Hi, Did you look at Common.Logging ? http://netcommon.sourceforge.net/ - Bruno 2009/7/20 xalex > > Hi Peter, thanks for your reply. > > A - if wrapping is simply possible it offers flexibility: think of a large > system landscape with hundrets of visual studio projects. If there is a > chang

Re: Wrapping Log4Net

2009-07-19 Thread xalex
Hi Peter, thanks for your reply. A - if wrapping is simply possible it offers flexibility: think of a large system landscape with hundrets of visual studio projects. If there is a change in the log4net version, you have to update all these references. If it is wrapped, you can do this once (if th

Re: Wrapping Log4Net

2009-07-18 Thread Daniel Marohn
Hi Alex, > private log4net.ILog _log; I think this line is wrong. You use an Implementation of ILog for your wrapper. This implementation will do the same checks, your Implementation does and it sets the locationinfo onto your position (from the point of the _log instance, your code is doing the

RE: Wrapping Log4Net

2009-07-18 Thread Matt Lund
he loss of loose coupling." From: Matt Lund [mailto:ml...@control4.com] Sent: Saturday, July 18, 2009 3:20 PM To: Log4NET User Subject: RE: Wrapping Log4Net This reminds me of my attempt to wrap our use of NHibernate. I later realized this was a bad idea for a practical reason and philo

RE: Wrapping Log4Net

2009-07-18 Thread Matt Lund
Drier [mailto:peter.dr...@gmail.com] Sent: Saturday, July 18, 2009 3:10 PM To: Log4NET User Subject: Re: Wrapping Log4Net Because of "A", wrapping log4net is a bad idea. It's a noble thought, but in 10+ years of using log4net and having people around and above me demand wrapping, I&#

Re: Wrapping Log4Net

2009-07-18 Thread Peter Drier
Because of "A", wrapping log4net is a bad idea. It's a noble thought, but in 10+ years of using log4net and having people around and above me demand wrapping, I've never seen log4net replaced. Given you can always write an appender to output to any other system as necessary, the "need" for wrapp

Re: Wrapping Log4Net in a Facade --> incorrect LocationInfo shown for file, methods....

2007-01-19 Thread Ron Grabowski
ubject: Re: Wrapping Log4Net in a Facade --> incorrect LocationInfo shown for file, methods Ron, Many thanks for your answer. This was exactly what I was looking for. This is an elegant solution! The only question I still have is the following: The link you pointed me to (Log4NetLogger.cs)

Re: Wrapping Log4Net in a Facade --> incorrect LocationInfo shown for file, methods....

2007-01-19 Thread José Joye
. However, I was just asking myself why this class only partially implemented the interface. Thanks again, - José - Original Message - From: "Ron Grabowski" <[EMAIL PROTECTED]> To: "Log4NET User" Sent: Thursday, January 18, 2007 10:53 PM Subject: Re: Wr

RE: Wrapping Log4Net in a Facade --> incorrect LocationInfo shown for file, methods....

2007-01-19 Thread Budamala, Jayakumar [CCC-OT_IT]
Hi Jose, if possible could you send me the Facade class for the log4net, I want to provide same thing to the developers. there is some property, that you can use to stop going to the levells. may be nesting level something like this. Thanks and regards, Jayakumar Budamala Citigroup Archi

Re: Wrapping Log4Net in a Facade --> incorrect LocationInfo shown for file, methods....

2007-01-18 Thread Ron Grabowski
I believe the pattern is called "abstract factory". Your facade needs to perform logging using the methods on ILogger and passing in the Type of your wrapper class. See this class for an implementation and comments as to why its necessary: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper/

RE: Wrapping Log4Net with a Facade - How to get the correct Location Information

2005-08-29 Thread Nicko Cadell
> -Original Message- > From: Shireesh Thanneru [mailto:[EMAIL PROTECTED] > Sent: 29 August 2005 05:17 > To: Log4NET User > Subject: RE: Wrapping Log4Net with a Facade - How to get the > correct Location Information > > Nicko, > > Thanks...That worked like a

RE: Wrapping Log4Net with a Facade - How to get the correct Location Information

2005-08-28 Thread Shireesh Thanneru
Nicko, Thanks...That worked like a charm and now I see the actual location information. While we are on the facade, I have one more question. For our facade layer, we will have some configuration information (similat to how log4net needs its config info) that will configure our facade's behavior.

RE: Wrapping Log4Net with a Facade - How to get the correct Location Information

2005-08-25 Thread Nicko Cadell
The log4net ILog / LogImpl types are a façade (also known as wrapper or extension) around log4net. If you are creating your own façade you need to do the same as the LogImpl class. Rather than calling LogManager and wrapping the ILog objects you should call into log4net.Core.LoggerManager to ge