mirror of
https://github.com/yaakov-h/Notepad.Extensions.Logging.git
synced 2024-11-25 12:34:48 +00:00
Removed default value and added exception.
This commit is contained in:
parent
a2a2451a6b
commit
ed95e98a27
1 changed files with 2 additions and 2 deletions
|
@ -7,11 +7,11 @@ namespace Microsoft.Extensions.Logging
|
|||
{
|
||||
class NotepadLogger : ILogger
|
||||
{
|
||||
public NotepadLogger(ObjectPool<StringBuilder> stringBuilderPool, string categoryName, string windowName = null)
|
||||
public NotepadLogger(ObjectPool<StringBuilder> stringBuilderPool, string categoryName, string windowName)
|
||||
{
|
||||
this.stringBuilderPool = stringBuilderPool;
|
||||
this.categoryName = categoryName;
|
||||
this.windowName = windowName;
|
||||
this.windowName = windowName ?? throw new ArgumentNullException("Window name cannot be null.");
|
||||
}
|
||||
|
||||
readonly ObjectPool<StringBuilder> stringBuilderPool;
|
||||
|
|
Loading…
Reference in a new issue