Appender implementation so it seems. The
above logic is from the TextWriterAppender.
--
Werner
ITemplate wrote:
>
> 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
> ins
yFilter is reversed into "if NOT that ID
matches discard the log entry". I thought there would be some "Filter1 AND
Filter2 AND..." logic, but there isn't.
--
Werner
ITemplate wrote:
>
> Hi,
>
> Ok now I can get it to work but the reason I dont understand. I
:
>
> Yes, properties is the only way.
> I think, the best way to find out, what's wrong, is to step through
> log4net source with debugger.
>
> On Wed, May 5, 2010 at 2:54 PM, ITemplate wrote:
>>
>> Hi,
>>
>> Tried that already both Stacks and Propert
xt.Properties["ID"] =
> "87e18d7e477349ef9713e19c40ea393a";
>
> On Wed, May 5, 2010 at 2:26 PM, ITemplate wrote:
>>
>> Hi,
>>
>> I have an appender that has 1 PropertyFilter like so:
>>
>>
>>
>>
>>
>&
Hi,
I have an appender that has 1 PropertyFilter like so:
In code I am using ILogger like so:
log4net.Core.LoggingEvent ev = new log4net.Core.LoggingEvent(...);
ev.Properties["ID"] = "87e18d7e477349ef9713e19c40ea393a";
If
:
>
> 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,
>>
>> Th
and reliable.
>
> On Tue, May 4, 2010 at 5:50 PM, ITemplate wrote:
>>
>> 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&quo
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
4NetConfigurationSectionHandler, log4net,
> Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821" />
> (may be changing Version/PuplicKeyToken if you use not 1.2.10 official
> release) And put tag into .
>
> On Wed, Apr 28, 2010 at 10:43 AM, ITemplate wrot
Oh forgot - be sure to initialize the configuration (one time, in
Application_Start as mabra suggested for example) like this:
XmlConfigurator.Configure();
--
Werner
ITemplate wrote:
>
> No because that would produce a compile error - the problem, as I read it,
> is that the prog
No because that would produce a compile error - the problem, as I read it, is
that the program works alright but the logfile just isnt created.
Anyways, it could be a security issue. A web application would probably not
have rights to write to that directory you have specified. Try to set the
lo
or rolling.
> If you unset this StaticLogFileName flag, renaming will not be nesessary
> at all.
>
> On Tue, Apr 27, 2010 at 10:13 AM, ITemplate wrote:
>>
>> Hm ok but why is one option better than the other? Should I care?
>>
>>
>> Yuriy Taraday wrot
dd.N (in
> common case) file and rollover is just creating one more such file.
>
> On Mon, Apr 26, 2010 at 5:39 PM, ITemplate wrote:
>>
>> Hi,
>>
>> I read this:
>> http://logging.apache.org/log4net/release/sdk/log4net.Appender.RollingFileAppender.Static
Hi,
I read this:
http://logging.apache.org/log4net/release/sdk/log4net.Appender.RollingFileAppender.StaticLogFileName.html
Plz don't laugh, but I don't understand that english :). Could someone
rephrase what that boolean means? What is the default value and should I
change that to true or false?
#x27;d have to put your filters and thresholds on the WouldLogAppender
> instead of on the wrapped appender.
>
>
> - Original Message
> From: ITemplate
> To: log4net-user@logging.apache.org
> Sent: Thu, April 15, 2010 3:36:20 AM
> Subject: Re: Possible to test log4net filters
.@techsoftinc.com
> http://www.TechSoftInc.com
> http://www.IRBManager.com
>
> Quiquid latine dictum sit altum viditur.
> (Whatever is said in Latin seems profound.)
>
>
> -Original Message-
> From: ITemplate [mailto:itempl...@hotmail.com]
> Sent: Thursda
ill have
> to check each appender separately.
>
> ~Loren Keagle
>
>
> On 4/13/2010 6:18 AM, ITemplate wrote:
>> Noone knows? Perhaps I could rephrase: I need a programmatic way to
>> determine
>> if a certain logentry would be filtered or not.
>&g
- if that specific line in my code will
produce a log. Some programmatic way to test one or all configured filters
against the data in my log-line (Logger, Level, text etc).
Hope my meaning here is more clearer?
Thanks.
ITemplate wrote:
>
> Hi,
>
> Is this "old" for
Hi,
Is this "old" forum the only for log4net? Anyways - suppose I have a certain
logevent, is it possible to investigate up front IF that particular logevent
would pass all filters? I can't seem to find a Filters collection that I can
use for this?
--
Werner
--
View this message in context:
h
19 matches
Mail list logo