RemoteAgents Windows Phone .NET trying out remote, log NLog
authorGustavo Martin <gu.martinm@gmail.com>
Sun, 2 Mar 2014 21:31:29 +0000 (22:31 +0100)
committerGustavo Martin <gu.martinm@gmail.com>
Sun, 2 Mar 2014 21:31:29 +0000 (22:31 +0100)
I do not know how to run WCF web services :(

WindowsPhone/RemoteAgents/RemoteAgents/NLog.config

index ffa252c..ba49fd2 100644 (file)
@@ -6,21 +6,33 @@
   See http://nlog-project.org/wiki/Configuration_file 
   for information on customizing logging rules and outputs.
    -->
-  <targets>
-    <!-- add your targets here -->
+  <targets async="true">
+    <!-- add your targets here
 
     <target name="asyncFile" xsi:type="AsyncWrapper">
       <target xsi:type="File" name="logfile" fileName="${shortdate}.log"
             layout="${longdate} ${uppercase:${level}} ${callsite} ${message} ${newline}" />
     </target>
 
+    -->
+    <target xsi:type="LogReceiverService"
+      name="remoteLog"
+      endpointAddress="http://gumartinm.name/Design_Time_Addresses/MyLogReceiverApp/LogReceiverServer/"
+      useBinaryEncoding="false"
+      clientId="remoteagents_wp8"
+      includeEventProperties="true">
+      <parameter layout="${longdate} ${uppercase:${level}} ${callsite} ${message} ${newline}" />
+    </target>
 
   </targets>
 
   <rules>
     <!-- add your logging rules here -->
     
+    <!--
     <logger name="*" minlevel="Info" writeTo="asyncFile" />
+    -->
+    <logger name="*" minlevel="Info" writeTo="remoteLog" />
+
   </rules>
 </nlog>
\ No newline at end of file