Skip to content

Commit

Permalink
Renamed SerilogLogger to SerilogRequestLogger.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Atkinson committed Apr 24, 2017
1 parent fb82090 commit c76da03
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Examples/AspNetExample/Global.asax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected void Application_Start()
private static RequestLoggerModule CreateRequestLoggerModule()
{
var logger = new LoggerConfiguration().WriteTo.Trace().CreateLogger();
var requestLogger = new SerilogLogger(logger);
var requestLogger = new SerilogRequestLogger(logger);
return new RequestLoggerModule(requestLogger);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Examples/OwinExample/App_Start/Startup.Logging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public partial class Startup
private static void ConfigureLogging(IAppBuilder app)
{
var logger = new LoggerConfiguration().WriteTo.Trace().CreateLogger();
var requestLogger = new SerilogLogger(logger);
var requestLogger = new SerilogRequestLogger(logger);

app.UseRequestLoggerMiddleware(requestLogger);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<ItemGroup>
<Compile Include="Formatters\DefaultMessageFormatterTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SerilogLoggerTests.cs" />
<Compile Include="SerilogRequestLoggerTests.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ namespace RequestLogger.Serilog.Tests
{
[TestFixture]
[Parallelizable]
public class SerilogLoggerTests
public class SerilogRequestLoggerTests
{
[SetUp]
public void SetUp()
{
_logger = new Mock<ILogger>();
_messageFormatter = new Mock<IMessageFormatter>();
_requestLogger = new SerilogLogger(_logger.Object, _messageFormatter.Object);
_requestLogger = new SerilogRequestLogger(_logger.Object, _messageFormatter.Object);
}

private Mock<ILogger> _logger;
Expand Down
2 changes: 1 addition & 1 deletion src/RequestLogger.Serilog/RequestLogger.Serilog.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<Compile Include="Formatters\FormattedMessage.cs" />
<Compile Include="Formatters\IMessageFormatter.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SerilogLogger.cs" />
<Compile Include="SerilogRequestLogger.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

namespace RequestLogger.Serilog
{
public class SerilogLogger : IRequestLogger
public class SerilogRequestLogger : IRequestLogger
{
private readonly ILogger _logger;
private readonly IMessageFormatter _formatter;

public SerilogLogger(ILogger logger, IMessageFormatter formatter = null)
public SerilogRequestLogger(ILogger logger, IMessageFormatter formatter = null)
{
_logger = logger;
_formatter = formatter ?? new DefaultMessageFormatter();
Expand Down

0 comments on commit c76da03

Please sign in to comment.