Re: How to get line number and file name in custom Appender?

2010-05-04 Thread ITemplate
Hi, Yes well I know that - but does log4net retrieve Stack information at all time? It would seem to me, that either it does (which is bad) or it inspects all possible layouts to determine if stack information is called for. Does anyone know this? -- Werner Yuriy Taraday wrote: > > StackTra

Re: How to get line number and file name in custom Appender?

2010-05-04 Thread Yuriy Taraday
StackTrace is internal .Net interface. Of course, .Net knows everything about currently executing code unless this information was wiped out by compiler/obfuscater/optimizer. On Wed, May 5, 2010 at 12:24 AM, ITemplate wrote: > > Hi Yuriy, > > Thanks for your reply. I gotta say, I was a bit surpr

RE: How to get line number and file name in custom Appender?

2010-05-04 Thread Radovan Raszka
These information can be available even in release build - if you distribute also *.pdb files for your assemblies RR -Původní zpráva- Od: Ron Grabowski [mailto:rongrabow...@yahoo.com] Odesláno: 4. května 2010 22:59 Komu: Log4NET User Předmět: Re: How to get line number and file name in

Re: How to get line number and file name in custom Appender?

2010-05-04 Thread Ron Grabowski
Some stacktrace information like line numbers are not available in release builds. - Original Message From: ITemplate To: log4net-user@logging.apache.org Sent: Tue, May 4, 2010 4:24:49 PM Subject: Re: How to get line number and file name in custom Appender? Hi Yuriy, Thanks for your

Re: How to get line number and file name in custom Appender?

2010-05-04 Thread ITemplate
Hi Yuriy, Thanks for your reply. I gotta say, I was a bit surprised to see that log4net per default could write out stack information - is the stacktrace collected at all times? It would seem so... -- Werner Yuriy Taraday wrote: > > http://logging.apache.org/log4net/release/sdk/log4net.Lay

Re: How to get line number and file name in custom Appender?

2010-05-04 Thread Yuriy Taraday
http://logging.apache.org/log4net/release/sdk/log4net.Layout.PatternLayout.html Note about caller location information. The following patterns %type %file %line %method %location %class %C %F %L %l %M all generate caller location information. Location information uses the System.Diagnostics.StackTr

How to get line number and file name in custom Appender?

2010-05-04 Thread ITemplate
Hi, Using a file appender, I can write the source code line number in my log file using "%line". But if I have a custom Appender with the "LoggingEvent" - where is that information stored and retrievable? -- Werner -- View this message in context: http://old.nabble.com/How-to-get-line-number