Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

meriturva/NLog.HangfireLayouts

Repository files navigation

Latest version

Few hangfire layouts to use with NLog logging library

Installation

NLog.HangfireLayouts is available as a NuGet package. You can install it using the NuGet Package Console window:

PM> Install-Package Bonura.NLog.HangfireLayouts

First install and configure package:Hangfire.PerformContextAccessor.

See:https://github.com/meriturva/Hangfire.PerformContextAccessor

After installation, update your NLog settings:

"NLog": {"extensions": [    {"assembly":"NLog.HangfireLayouts"    }  ]

Layouts

  • hangfire-jobid -> hangfire job id

Use

A simple message layout with jobid

"targets": {"console": {"layout":"${longdate}|${level:uppercase=true}|${logger}|${message}|${hangfire-jobid}|${exception:format=toString}","type":"ColoredConsole"  }}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp