My application is pointing to .net core framework 1.1.1.
I have added NLog to my project.
NLog - 5.0.0-beta05
NLog.Config - 4.3.9
NLog.Extensions.Logging - 1.0.0-rtm-beta1
My NLog config file is as follows:
<target name="infoInstrumentation"
xsi:type="File"
concurrentWrites="false"
archiveFileName="/home/ubuntu/Desktop/Logs/Punu/ServiceInstrumentation.${shortdate}.{##}.log"
archiveAboveSize="1000000"
archiveNumbering="Rolling"
maxArchiveFiles="10"
fileName="/home/ubuntu/Desktop/Logs/Punu/ServiceInstrumentation.${shortdate}.log"
layout="Timestamp: ${date}${newline}${all-event-properties:format=[key]\: [value]:separator=\
}${newline}Message: ${message}${newline}Machine: ${machinename}${newline}${newline}${LayoutFooter}"
keepFileOpen="false">
</target>
Logging works on windows, but when I test code on Linux, it fails to write. Few days before it was working with Linux, but now it has stopped completely.