You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by SoxFan44 <gr...@yahoo.com> on 2011/07/14 22:16:47 UTC

Pass in object to custom appender programmatically?

Hi,
I wrote a custom appender that needs a custom object to be passed in to it. 
I see how I can use the config file to pass in string values, but is there a
way to programmatically pass in objects?  Ex:

public class MyAppender : AppenderSkeleton
{
  public MyCustomObject obj { get; set; }

  public override Append(...)
  {
    ...
  }
}

Thanks!
-- 
View this message in context: http://old.nabble.com/Pass-in-object-to-custom-appender-programmatically--tp32064132p32064132.html
Sent from the Log4net - Users mailing list archive at Nabble.com.