title: NLog MethodCall
body: <p>I've got a silverlight project and I'm trying to configure NLog for calling static method but it doesn't (using Nlog.config).
  I'm following <a href="https://github.com/nlog/NLog/wiki/MethodCall-target" rel="nofollow">this example</a>.
  Here's Nlog.config code:</p>
  
  <pre><code>...
      &lt;targets&gt;
          &lt;target name="m" xsi:type="MethodCall" 
                           className="NLogTestSilver.MainPage, NLogTestSilver"
                           methodName="LogMethod"&gt;
              &lt;parameter layout="${level}" /&gt;
              &lt;parameter layout="${message}" /&gt;
          &lt;/target&gt;
      &lt;/targets&gt;
  
      &lt;rules&gt;
          &lt;logger name="*" minlevel="Debug" writeTo="m" /&gt;
      &lt;/rules&gt;
  ...
  </code></pre>
  
  <p>Assembly name = NLogTestSilver.dll</p>
  
  <p>Here's MainPage.xaml.cs code:</p>
  
  <pre><code>namespace NLogTestSilver
  {
      public partial class MainPage : UserControl
      {
          public static Logger Logger = LogManager.GetCurrentClassLogger();
          public MainPage()
          {
              InitializeComponent();
              Logger.Fatal("Fatality");
          }
          public static void LogMethod(string level, string message)
          {
              System.Windows.Browser.HtmlPage.Window.Alert(level + " " + message);
          }
      }
  }
  </code></pre>
  
  <p>P.S. Programmatic configuration works well.</p>