-
Notifications
You must be signed in to change notification settings - Fork 245
Added NullLoggerFactory to Logging.Abstractions #568
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
namespace Microsoft.Extensions.Logging.Abstractions | ||
{ | ||
public class NullLoggerFactory : ILoggerFactory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doc comments plz kthxbye!
🆙 📅 |
@@ -3,15 +3,20 @@ | |||
|
|||
namespace Microsoft.Extensions.Logging.Abstractions | |||
{ | |||
/// <summary> | |||
/// An <see cref="ILoggerFactory"/> used to create instance of <see cref="NullLogger"/>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be worth adding some text that explicitly states that this logger never logs anything? Same goes for the methods below...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It says that in the docs for NullLogger
. Do we have to say that here too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it doesn't hurt to add it here. Will update
60f329c
to
3807733
Compare
🆙 📅 |
|
||
/// <inheritdoc /> | ||
/// <remarks> | ||
/// This method explicitly no ops. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this phrasing can be improved, no ops
is nerd-speak. How about "This method ignores the parameter and does nothing."
|
||
/// <inheritdoc /> | ||
/// <remarks> | ||
/// This returns a <see cref="NullLogger"/> instance which explicitly logs nothing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove explicitly
.
🆙 📅 |
👏 That only took 8 hours |
61a228f
to
b4ecccd
Compare
Issue - #566
Removing
NullLogger*
types from Logging.Testing will break other repos. That should be done separately.@Eilon @muratg