Skip to content

Conversation

whut
Copy link
Contributor

@whut whut commented Feb 4, 2012

https://nhibernate.jira.com/browse/NH-2821

Here is an updated pull request, like in #15. This time I just check if log4net is already loaded in current AppDomain, so now it does not matter if someone uses log4net or nhibernate from GAC or not!

@hazzik
Copy link
Member

hazzik commented Dec 11, 2013

Can we test this behaviour somehow?

@gongzunpan
Copy link

印象笔记无法提交笔记,原因如下:

本月帐户上传流量已经达到上限。

原消息详情:
来自:"Alexander I. Zaytsev" <[email protected]>
发送到:[email protected]
全部收件人:nhibernate/nhibernate-core <[email protected]>
主题:Re: [nhibernate-core] NH-2821 - another approach to finding log4net (#73)

为了防止邮件过多,接下来的360分钟内,你将不会收到报错回复。

升级到印象笔记高级帐户,可以发送的邮件数量将从50封提升到200封。
https://app.yinxiang.com/Checkout.action?origin=email%2Dcommerce

  • 印象笔记团队

…ra.com/browse/NH-2821

Instead of checking for file on disk (which might fail, for example when
using ShadowCopy, like when running inside NUnit), check if log4net
assembly is loaded in current AppDomain.
@hazzik hazzik modified the milestones: 4.1.0, 5.0.0 Sep 21, 2014
@whut
Copy link
Contributor Author

whut commented Oct 13, 2014

I used this patch in my project, to avoid need for special call to NHibernate to pick up log4net when running under Nunit test runner. I believe that creating test for that is possible, but would require creating app domain, it is far easier in this case to do manual test, code is simple and will not be changed often.

@hazzik hazzik modified the milestones: 4.1.0, 5.0.0 Nov 18, 2014
@hazzik
Copy link
Member

hazzik commented Nov 18, 2014

@whut can you please rebase this on top of master?

@hazzik
Copy link
Member

hazzik commented Feb 22, 2015

Merged 8692a59

@hazzik hazzik closed this Feb 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants