NLog

NLog - Advanced and Structured Logging for Various .NET Platforms

BSD-3-CLAUSE License

Stars
6.2K
Committers
209

Bot releases are hidden (Show)

NLog - NLog 4.3.1

Published by 304NotModified over 8 years ago

Fixes for bugs introduced in NLog 4.3. All reported issues are now fixed.

  • Fix: Possible stackoverflow when using ${var:myvar} with the FileTarget
  • Fix: NLog could throw "allLayouts is null. Call base.InitializeTarget()", which was even an issue when throwExceptions = false.
  • Fix: Filetarget could throw "Thread was being aborted"

See milestone

NLog - NLog 4.3

Published by 304NotModified over 8 years ago

Features

  • Support Windows Phone 8, Xamarin Android and Xamarin iOS (beta)
  • Consistent handling of exceptions (BEHAVIOUR CHANGE)
  • Control of exception throwing for configuration errors
  • API improvements
  • Relative paths for fileTarget
  • InternalLogger: write to System.Diagnostics.Trace
  • Mail Target: Allow virtual paths for SMTP pickup
  • EventTarget: option to set the max length of the message and action (discard, split, truncate)
  • MethodCallTarget: allow optional parameters in called methods.
  • ConsoleTarget: Regex cache is instead of compiled regex, for better memory usage. This is configurable.
  • Database target: don't require "ProviderName" attribute when using <connectionStrings>
  • RegistryLayout: Support for layouts, RegistryView (32, 64 bit) and all root key names (HKCU/HKLM etc)
  • Allow to free CallContext in MappedDiagnosticsLogicalContext
  • LogFactory: Add generic-type versions of GetLogger() and GetCurrentClassLogger()
  • Added Logger.Swallow(Task task)
  • Unused targets will be logged to the internal logger
  • Config classes are now thread-safe.
  • InternalLogger: improved logging of exceptions (analogous to normal Logger)
  • More logging to the internal logger (e.g. Async wrapper and buffer wrapper)
  • Added timestamp options for the internal logger.
  • Autoload NLog.config in assets folder on Android

Bug fixes

Among others:

  • ${callsite} works now for async methods!
  • A lot of Filetarget bug fixes regarding with archiving, locking and concurrent writing.
    Most noticeable:
    • Use last-write-time for archive file name. This is far more stable.
      In the past there were some issues with unexpected archive filenames.
    • Fix: archiving won't work when a there is a date in the filename
    • Fix: archiving not working properly with AsyncWrapper
    • Fix: Footer for archiving
    • Fix: Crashes with relative path without ${basedir}
    • Fix: Archive files are never created when there are lot of write in log file
  • NetworkTarget: fix possible deadlock
  • Fix autoreload nlog.config with parent configs.
  • WebServiceTarget: Fix HTTP GET protocol
  • Bugfix: Internallogger creates folder, even when turned off
  • Fix possible Nullref in ${variable}
  • ${processtime}: incorrect milliseconds formatting
  • ${processtime}: fix incorrect negative time (rounding issue)
  • FileTarget: Fix writing log files to root dir
  • Check for TimeToSleepBetweenBatches in AsyncWrapper

See milestone

NLog - NLog 4.3.0 beta 1

Published by 304NotModified over 8 years ago

Features

  • Support for Windows Phone 8 (beta)
  • Support for Xamarin Android (beta)
  • Support for Xamarin iOS (beta)
  • Consistent handling of exceptions:
    • all exceptions are logged to the internallogger
    • throwExceptions option will be respected in all cases (advise: disable throwExceptions in production environments)
  • FileTarget now supports relative paths. No need for ${basedir} anymore!
  • EventTarget: option to set the max length of the message and action (discard, split, truncate)
  • MethodCallTarget: allow optional parameters
  • RegistryLayout: Support for layouts, RegistryView (32, 64 bit) and all root key names (HKCU/HKLM etc)
  • Unused targets will be logged to the internallogger
  • Config classes are now threadsafe.
  • ConsoleTarget: Regex cache is instead of Regex Compile (option), for better memory usage.
  • InternalLogger: improved logging of exceptions (analogous to normal Logger)

Bugfixes

See full list: https://github.com/NLog/NLog/issues?q=milestone%3A4.3+is%3Aclosed

NLog - NLog 4.2.3: Performance improvements (CPU & Memory) for the FileTarget

Published by 304NotModified almost 9 years ago

Performance improvements (CPU & Memory) for the FileTarget.

Changes:

  • Improve file writing when file name has fixed name: no layout renderer in file name. 10 secs instead of 34 sec for 10 million. Sync writing with keepFileOpen="true", AutoFlush="false" and ConcurrentWrites="false".
  • Improved CleanupFileName by @epignosisx (https://github.com/NLog/NLog/pull/1063)
  • Changes the performance of GDC toString
  • Added option CleanupFileName on filetarget for faster writing when using dynamic (=non-fixed) file name. Default true (=backwards-compatible)
NLog - NLog 4.2.2

Published by 304NotModified almost 9 years ago

Fixed assembly file version. Same code as NLog 4.2.1.

See GitHub issue

NLog - NLog 4.2.1

Published by 304NotModified almost 9 years ago

  • Show warning for Databasetarget.UseTransactions instead of exception.
  • NetworkTarget: improved performance, allow configuring of max connections.
  • Filetarget: Max archives settings sometimes removes to many files.
  • Prevent Collection was modified (ObjectGraphScanner.ScanProperties)
  • General memory pressure improvements.
  • LogReceiverWebServiceTarget.CreateLogReceiver() should be virtual
  • VariableLayoutRenderer does not work with Custom LogManagers.
NLog - NLog 4.2.0

Published by 304NotModified almost 9 years ago

Features

  • Performance Counter Target: it's now possible to configure the step size for the counter target. Before the step size was always one.
  • Mail Target: pickupDirectoryLocation and deliveryMethod are configurable from the NLog config.
  • Cached Layout Renderer: a clearCache option has been added for more control over clearing the cache.
  • File target: auto add .zip to compressed archive when archiveName isn't specified.

Bug fixes

  • Inner layout can now contain colons.
  • Colored Console Target: highlight whole words was broken.
  • Mail Target: when useSystemNetMailSettings was false, some settings were still used from the <mailSettings> of the .Net config.
  • Removed unnecessary System.Drawing references for Xamarin.
  • File Target: sometimes an exception was thrown when archiving was enabled.
  • File Target: file archiving DateAndSequence & FileArchivePeriod.Day won't always work.
  • GetTargetsByLevelForLogger could throw a "Collection was modified" exception.

In more detail, see news post

NLog - NLog 4.1.2

Published by 304NotModified about 9 years ago

Features:

  • Fluent API: Added .Properties for easier adding of multiple (event)properties.

Bug fixes:

  • AllEventPropertiesLayoutRenderer was not ThreadAgnostic.
  • Possible "Collection was modified" exception with ReconfigExistingLoggers.

Other:

  • AssemblyFileVersion was wrong and could lead to issues with installers.
NLog - NLog 4.1.1

Published by 304NotModified about 9 years ago

Features:

  • MDLC now also supports objects, like MDC,GDC and NDC (those we're added in 4.1.0)

Bug fixes:

  • Fixed assembly name issue with strong name.
  • NLog won't crash if there are binaries starting with "Nlog" that we can't load (auto load)
  • Directory was required with the internal logger

Other:

  • Obsolete text fixed
  • Removed some unused classes (moved to NLog.Windows.Forms before)

See news post.

NLog - NLog 4.1

Published by 304NotModified about 9 years ago

New features, bug-fixes and easier upgrade to NLog 4.x

See news post

NLog - NLog 4.0.1

Published by 304NotModified over 9 years ago

Patch release for 4.0. This release fixes the following problems:

  • The auto-load of the extensions was not working in combination with ASP.NET.
  • Autoflush was not optimal implemented.
  • We reverted an unneeded breaking change in MailTarget. The SMTP property is not required anymore. This is consistent with 3.x.
  • Loading the NLog assembly from an embedded resource is now working.
  • Writing to files could lead to OverflowExceptions in 64-bit runtime. This was a bug since NLog 2.0.
  • Some descriptions for the obsolete methods are corrected.

See also news post

NLog - NLog 4.0

Published by 304NotModified over 9 years ago

NLog - NLog 4.0 Release Candidate

Published by 304NotModified over 9 years ago

NLog - NLog 3.2.1 bug fix release

Published by 304NotModified over 9 years ago

See milestone

Package Rankings
Top 8.17% on Proxy.golang.org
Related Projects