The Reason I ask is I don't like the idea of having to use log4net directly
in my windsor installer to do this
log4net.GlobalContext.Properties["LogName"] = logName;
On Monday, April 29, 2013 1:32:46 PM UTC-5, OutOfTouch wrote:
>
> Not Yet, I am wondering how you set this value using Castle?
>
> On Monday, April 29, 2013 11:05:33 AM UTC-5, Filip Kinsky wrote:
>>
>> Hi, I'd don't remember it clearly, but I think it was just about correct
>> RollingFileAppender
>> configuration. Did you try to use the configuration element I mentioned:
>> <file
>> type="log4net.Util.PatternString" value="%property{LogName}" /> ?
>>
>>
>> On Mon, Apr 29, 2013 at 5:41 PM, OutOfTouch <[email protected]> wrote:
>>
>>> Hi Filip,
>>>
>>> I know this is an old thread but I need to do the same thing that you
>>> were trying to do here and I can't not find any examples of using the E
>>> xtendedLog4netLogger .cs class
>>> Did you use this class to do this? Even if you didn't do you have any
>>> examples of using this class? All the examples I see are the fluent
>>> registration of the LoggingFacility
>>> Anyone that knows feel free to answer please.
>>>
>>> Thanks!
>>>
>>> On Tuesday, October 27, 2009 10:39:05 AM UTC-5, Filip Kinsky wrote:
>>>>
>>>> I just solve the problem fortunately. The only mistake I made is in
>>>> the log4net.config file - the definition of file name parameter of
>>>> appender should not be done using <param name="File" ...>, but it
>>>> should look like this:
>>>>
>>>> <file type="log4net.Util.**PatternString" value="%property{LogName}"
>>>> />
>>>>
>>>> It just started to work when I changed the log4net.config file like
>>>> this. Nasty behaviour ;(
>>>>
>>>> On 27 říj, 13:34, John Simons <[email protected]> wrote:
>>>> > What you should do is create your own appender derived from
>>>> RollingFileAppender
>>>> >
>>>> > Cheers John
>>>> >
>>>> > On 27/10/2009, at 11:00 PM, Filip Kinsky <[email protected]> wrote:
>>>> >
>>>> > RollingFileAppender
>>>> >
>>>> > ______________________________**______________________________*
>>>> *_______________ _______
>>>> > Get more done like never before with Yahoo!7 Mail.
>>>> > Learn
>>>> > more:http://au.overview.mail.**yahoo.com/<http://au.overview.mail.yahoo.com/>
>>>
>>>
>>
--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/castle-project-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.