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

LogFactory Class Refactored #491

Merged
1 commit merged into from
Jan 10, 2015
Merged

LogFactory Class Refactored #491

1 commit merged into from
Jan 10, 2015

Conversation

ie-zero
Copy link
Contributor

@ie-zero ie-zero commented Jan 8, 2015

  • New inner class LoggerCache added which encapsulates the operations
    related to Dictionary loggerCache.
  • The LoggerCacheKey class now implements the IEquatable. This can
    potentially improve performance in certain cases.
  • ReconfigExistingLoggers(LoggingConfiguration) internal method was
    merged into ReconfigExistingLoggers() public method as it was always
    invoked with the same parameter value of this.config
  • Renamed DisableLogging() and EnableLogging() methods in LogManager
    class to SuspendLogging() and ResumeLogging() respectively. This will
    align the naming with Microsoft conventions (see Control.ResumeLayout
    method). The DisableLogging() and EnableLogging() were marked as
    obsolete.
  • Remove CLSCompliant(false) attribute from various methods as it is not
    required.
  • Comments and code reformatted.
  • [Fix] Narrowed the captured exceptions within
    InvalidLoggerConfiguration tests in UnitTests\GetLoggerTests class.

[Note] The name changes on DisableLogging() and EnableLogging() methods
affect the public interface.

* New inner class LoggerCache added which encapsulates the operations
related to Dictionary loggerCache.
* The LoggerCacheKey class now implements the IEquatable. This can
potentially improve performance in certain cases.
* ReconfigExistingLoggers(LoggingConfiguration) internal method was
merged into ReconfigExistingLoggers() public method as it was always
invoked with the same parameter value of this.config
* Renamed DisableLogging() and EnableLogging() methods in LogManager
class to SuspendLogging() and ResumeLogging() respectively. This will
align the naming with Microsoft conventions (see Control.ResumeLayout
method). The DisableLogging() and EnableLogging() were marked as
obsolete.
* Remove CLSCompliant(false) attribute from various methods as it is not
required.
* Comments and code reformatted.
* [Fix] Narrowed the captured exceptions within
InvalidLoggerConfiguration tests in UnitTests\GetLoggerTests class.

[Note] The name changes on DisableLogging() and EnableLogging() methods
affect the public interface.
ghost pushed a commit that referenced this pull request Jan 10, 2015
@ghost ghost merged commit 076c258 into NLog:master Jan 10, 2015
@ie-zero ie-zero deleted the Refactor_LogFactory branch January 13, 2015 18:45
@304NotModified 304NotModified modified the milestone: 4.0 Feb 21, 2015
This pull request was closed.
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.

2 participants