How can we improve NLog?
+4
Completed
NLog .Net Logging 1 year ago • updated 11 months ago 6

Support for Xamarin Android / Xamarin iOs

Answer
j.verdurmen 11 months ago

This is available in NLog 4.3.0, which is now in beta stage.

+3
NLog .Net Logging 1 year ago 0
Set the variable in the XML under a <logger>, like

(https://github.com/NLog/NLog/issues/528)
 <rules>    
   <logger name="*.sqlExecutor" minlevel="Debug" writeTo="db">
      <!--new, variable for this logger-->
      <variable name="category" value="queries" />
    </logger>
  </rules>
+2
j.verdurmen 1 year ago 0

The internallogger (only needed for debugging/inspecting NLog) now only supports absolute paths.

+2
Completed
Steven Liekens 1 year ago • updated by j.verdurmen 10 months ago 4

Using variables to include config files is a really cool feature.

  • <include file="${machinename}.config"/>

But it fails when variables expand to file names that...

  • don't exist
  • the user can't access

Suggestion: add a fallback mechanism for the above error cases.

  • <include file="${machinename}.config" fallback="default.config"/>
+2
Completed
NLog .Net Logging 1 year ago • updated by j.verdurmen 1 year ago 4

Add asp.net logging integration, see https://github.com/aspnet/Logging


The log levels are now in sync with a recently change; https://github.com/aspnet/Announcements/issues/124

Answer
j.verdurmen 1 year ago

This is now released, see NLog.Framework.logging on NuGet


+2
j.verdurmen 1 year ago • updated 1 year ago 1

Rather than having 5 or so options for the "ArchiveEvery" property on a FileTarget it would be much more useful to be able to provide something like a TimeSpan variable allowing much more customization for how often archiving is performed. For instance, I do not believe it is very extensible to jump from a 1 minute interval to a 1 hour interval, 60x longer.


If there is a workaround to allow for more customization, please let me know.

+1
Alexander Buts 1 year ago 0

Use cron format like '*/2 * * * *' for file rotation. So existing date formats for rotation are subset of new one.

+1
Completed
j.verdurmen 1 year ago • updated 11 months ago 3

Support Windows Phone 8

Answer
j.verdurmen 11 months ago

This is available in NLog 4.3.0, which is now in beta stage.

+1
NLog .Net Logging 1 year ago 0

xml layout, in NLog.core. Multiple events in one xml document