I'm fairly certain it should be working. I'll have a look into that over the weekend, unless somebody else wants to do it
-- Krzysztof Kozmic On Thursday, 9 May 2013 at 11:55 PM, OutOfTouch wrote: > Well right now I am convinced that I can't add an appender file path at > runtime without using Log4net directly which to me makes it seem a little > pointless to use Castle's Logging Facility for the abstraction since I have > to use Log4net directly to do this. I still like castle, I am just bummed > out that this appears to not be working > > On Wednesday, May 8, 2013 5:20:27 PM UTC-5, Krzysztof Koźmic wrote: > > Ok so you're saying what used to work with normal logger stopped working > > when you switched to extended? > > Krzysztof Kozmic > > sent from my phone > > On 9 May 2013 08:16, "OutOfTouch" <[email protected] (javascript:)> > > wrote: > > > > > > I should add though that the code I posted that worked with the windsor > > > ILogger was ran before actually adding my logger installer to the > > > container. > > > > > > On Wednesday, May 8, 2013 4:58:43 PM UTC-5, Krzysztof Koźmic wrote: > > > > with Windsor you rely on the config file. Can you make it work with l4n > > > > and config file? > > > > > > > > -- > > > > Krzysztof Kozmic > > > > > > > > > > > > On Thursday, 9 May 2013 at 7:57 AM, OutOfTouch wrote: > > > > > > > > > With log4net and the normal ILogger it worked when doing this: > > > > > > > > > > log4net.GlobalContext.Properties[propertyName] = propertyValue; > > > > > log4net.Appender.RollingFileAppender rFileAppender = new > > > > > log4net.Appender.RollingFileAppender(); > > > > > log4net.Config.BasicConfigurator.Configure(rFileAppender); > > > > > > > > > > But I honestly don' see why I would have to use the last two lines of > > > > > code when the config file already has the appenders defined, I am not > > > > > sure how I would add new appender using the extended appender if I > > > > > have to use those last two lines of code. > > > > > On Wednesday, May 8, 2013 4:39:15 PM UTC-5, Krzysztof Koźmic wrote: > > > > > > dunno, > > > > > > > > > > > > try it with just l4n first in exactly the same order and see if it > > > > > > works or not > > > > > > > > > > > > -- > > > > > > Krzysztof Kozmic > > > > > > > > > > > > > > > > > > On Thursday, 9 May 2013 at 7:31 AM, OutOfTouch wrote: > > > > > > > > > > > > > I am wondering if it is not working because it reads the config > > > > > > > file before setting the global variable? > > > > > > > > > > > > > > On Wednesday, May 8, 2013 4:09:19 PM UTC-5, Krzysztof Koźmic > > > > > > > wrote: > > > > > > > > does it work if you use log4net directly? > > > > > > > > > > > > > > > > -- > > > > > > > > Krzysztof Kozmic > > > > > > > > > > > > > > > > > > > > > > > > On Wednesday, 8 May 2013 at 11:34 PM, OutOfTouch wrote: > > > > > > > > > > > > > > > > > Hi Krzysztof, > > > > > > > > > > > > > > > > > > I know you are a busy guy, I tried what you suggested in your > > > > > > > > > answer to my question on stack over flow > > > > > > > > > http://stackoverflow.com/questions/16343145/how-to-use-extendedlog4netlogger-cs-to-set-logfile-path-for-appender-at-runtime > > > > > > > > > > > > > > > > > > the problem is the log file is never created and I don't get > > > > > > > > > any runtime exception. I am not sure if it is because > > > > > > > > > configuration happens before the property is set or what I am > > > > > > > > > stumped. > > > > > > > > > > > > > > > > > > On Thursday, May 2, 2013 5:01:41 PM UTC-5, Krzysztof Koźmic > > > > > > > > > wrote: > > > > > > > > > > there should be some tests that demonstrate that, no? > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > Krzysztof Kozmic > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Friday, 3 May 2013 at 2:20 AM, OutOfTouch wrote: > > > > > > > > > > > > > > > > > > > > > Do you or anyone else know how I can do this using the > > > > > > > > > > > ExtendedLog4NetLogger.cs? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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/ > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > 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. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > 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. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > 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. > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > 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. > > > > > > > > > > > > > > > > > -- > > > 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] (javascript:). > > > To post to this group, send email to [email protected] > > > (javascript:). > > > 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. > > > > > > > -- > 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] > (mailto:[email protected]). > To post to this group, send email to [email protected] > (mailto:[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. > > -- 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.
