Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix For Issue #7031 #6

Merged
merged 7 commits into from
Sep 25, 2012
Merged

Fix For Issue #7031 #6

merged 7 commits into from
Sep 25, 2012

Conversation

ParthDesai
Copy link
Contributor

Fix for Issue Invalid configuration throws exception issue in Codeplex.
The GetCurrentClassLogger throws an exception , even if the flag ThrowExceptions is set to false.
As Reported in this codeplex : http://nlog.codeplex.com/workitem/7031

WorkAround : Guard CreateInstance method with try - catch block. And Handle the exception.

Issue # 7031 Invalid configuration throws exception
if the instance of new type is not created 
Possible reasons : Default constructor is not defined or not accessible
Workaround : Guarding the method with try catch block. And creating default
Instance of logger.
Updated code for Issue # 7031 Invalid configuration throws exception
 if the instance of new type is not created 
 Possible reasons : Default constructor is not defined or not accessible
 Workaround : Guarding the method with try catch block. And creating default
 Instance of logger.
Fixed typo in code for creating default Logger Instance. 
And updated comment.
Code changes was done for Issue # 7031
Fixed code for Issue so that if flag is set then the exception is thrown.
Created unit test function to test the fix for issue # 7031
ParthDesai added a commit that referenced this pull request Sep 25, 2012
@ParthDesai ParthDesai merged commit c9a626d into master Sep 25, 2012
304NotModified added a commit that referenced this pull request Feb 28, 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.

None yet

1 participant