-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correcting issue #62. Allows text/plain even if it's not registered i…
…n the encoder.
- Loading branch information
Showing
6 changed files
with
84 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/Griffin.Framework/Griffin.Core.Tests/Logging/Subjects/ClassA.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Griffin.Logging; | ||
|
||
namespace Griffin.Core.Tests.Logging.Subjects | ||
{ | ||
internal class ClassA | ||
{ | ||
ILogger _logger = LogManager.GetLogger<ClassA>(); | ||
|
||
public void DoSomething() | ||
{ | ||
_logger.Trace("ClassA is doing something."); | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/Griffin.Framework/Griffin.Core.Tests/Logging/Subjects/ClassB.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Griffin.Logging; | ||
|
||
namespace Griffin.Core.Tests.Logging.Subjects | ||
{ | ||
class ClassB | ||
{ | ||
ILogger _logger = LogManager.GetLogger<ClassB>(); | ||
|
||
public void DoSomething() | ||
{ | ||
_logger.Trace("ClassB is doing something."); | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/Griffin.Framework/Griffin.Core.Tests/Logging/Subjects/SomeLogger.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Griffin.Logging; | ||
using Griffin.Logging.Loggers; | ||
|
||
namespace Griffin.Core.Tests.Logging.Subjects | ||
{ | ||
internal class SomeLogger : BaseLogger | ||
{ | ||
public SomeLogger(Type type, string name) | ||
: base(type) | ||
{ | ||
Name = name; | ||
Entries = new List<LogEntry>(); | ||
} | ||
|
||
public List<LogEntry> Entries { get; set; } | ||
public string Name { get; } | ||
|
||
public override void Write(LogEntry entry) | ||
{ | ||
Entries.Add(entry); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters