# Almost impossible to add logging for Hangfire

**URL:** <https://discuss.hangfire.io/t/almost-impossible-to-add-logging-for-hangfire/423>\
**Category:** question\
**Tags:** log4net, logging\
**Created:** [December 4, 2014, 12:19pm UTC](https://discuss.hangfire.io/t/almost-impossible-to-add-logging-for-hangfire/423 "2014-12-04T12:19:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![farid\_masood](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/farid_masood/32/93_2.png) [@farid\_masood](https://discuss.hangfire.io/u/farid_masood)\
**Post date:** [December 4, 2014, 12:19pm UTC](https://discuss.hangfire.io/t/almost-impossible-to-add-logging-for-hangfire/423/1 "2014-12-04T12:19:46Z")

</div>

Hello,

It seems that it is almost impossible to add any logging with Hangfire (Net40).

It is very confusing, which versions to use to configure the logger as per the help article [http://docs.hangfire.io/en/latest/deployment-to-production/adding-logging.html](http://docs.hangfire.io/en/latest/deployment-to-production/adding-logging.html). I am using the Hangfire (.net4) which uses the Common.Logging (2.2.0) which Nlog and Nlog adapters should i use?

We are using the Log4Net and it would be nice if I know which version of Log4Net are compatible. Log4Net adapters are using the Common.Logging \> = 2.3.1 and getting compile error…

Have anyone configured it?

---

<div class="post-metadata">

**Author:** ![odinserj](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/odinserj/32/648_2.png) [@odinserj](https://discuss.hangfire.io/u/odinserj)\
**Post date:** [December 5, 2014, 1:50pm UTC](https://discuss.hangfire.io/t/almost-impossible-to-add-logging-for-hangfire/423/2 "2014-12-05T13:50:58Z")

</div>

.NET 4.0 is not officially supported by Hangfire yet. Those packages on NuGet are made by [@phillcampbell](https://github.com/phillcampbell).

Hangfire 1.3.0 will use another library for logging purposes, but I don’t know whether Phill will release a new version, it is hard to merge it.

---

<div class="post-metadata">

**Author:** ![odinserj](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/odinserj/32/648_2.png) [@odinserj](https://discuss.hangfire.io/u/odinserj)\
**Post date:** [July 27, 2015, 8:59am UTC](https://discuss.hangfire.io/t/almost-impossible-to-add-logging-for-hangfire/423/3 "2015-07-27T08:59:43Z")

</div>


