Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
avoid first-chance exception with NLog logger when it launches
  • Loading branch information
Aaronontheweb authored Oct 29, 2020
1 parent ffe2d61 commit 093eb70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Akka.Logger.NLog/NLogLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Akka.Logger.NLog
/// </summary>
public class NLogLogger : ReceiveActor, IRequiresMessageQueue<ILoggerMessageQueueSemantics>
{
private readonly ILoggingAdapter _log = Context.GetLogger();
private readonly ILoggingAdapter _log = Logging.GetLogger(Context.System.EventStream, "NLogLogger");

private static void Log(LogEvent logEvent, Action<NLogger, LogEvent> logStatement)
{
Expand Down

0 comments on commit 093eb70

Please sign in to comment.