Link to home
Start Free TrialLog in
Avatar of socom1985
socom1985

asked on

NLog not working on server

I just deployed my WCF Service on the Server. Everything works exept Nlog writes no logfile what so ever. Permissions should all be correct as it creates other files. I have no clue where to look anymore.. Please heeelp

Local it works..

here my NLog conf


<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <targets>
    <target name="file" xsi:type="File"
            layout="${longdate} ${logger} ${message}"
            fileName="${basedir}/logs/${shortdate}.log" />

    <target xsi:type="EventLog"
        name="event"
        layout="${longdate} ${logger} ${message}"
        machineName="localhost"
        source="SaaSManager"
        category="Application"
         />

    <target name="console" xsi:type="Console" />
  </targets>

  <rules>
    <logger name="*" minLevel="Trace" writeTo="file,event" />
    <logger name="*" minLevel="Info" writeTo="console" />
  </rules>


</nlog>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of cubaman_24
cubaman_24
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of socom1985
socom1985

ASKER

Found it.. thx
Hello:
What it was? Writing permissions issue?
Best regards.