Skip to content

Commit 0c9f0c9

Browse files
committed
Removed classes that were migrated to VTEXSplunkLogger library. Also, adjusted default namespace to Vtex instead of VTEX. Added new VTEXSplunkLogger project reference to WebApi sample project.
#17
1 parent d14742a commit 0c9f0c9

File tree

11 files changed

+14
-334
lines changed

11 files changed

+14
-334
lines changed

src/SampleWebAPI/Controllers/ValuesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using Microsoft.AspNetCore.Mvc;
44
using Microsoft.Extensions.Logging;
55

6-
namespace VTEX.SampleWebAPI.Controllers
6+
namespace Vtex.SampleWebAPI.Controllers
77
{
88
[Route("api/[controller]")]
99
public class ValuesController : Controller

src/SampleWebAPI/Logging/LoggerFactoryExtensions.cs

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/SampleWebAPI/Logging/VTEXEventLevel.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/SampleWebAPI/Logging/VTEXLogType.cs

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/SampleWebAPI/Logging/VTEXSplunkEntry.cs

Lines changed: 0 additions & 65 deletions
This file was deleted.

src/SampleWebAPI/Logging/VTEXSplunkLoggerFormatter.cs

Lines changed: 0 additions & 168 deletions
This file was deleted.

src/SampleWebAPI/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Microsoft.AspNetCore;
22
using Microsoft.AspNetCore.Hosting;
33

4-
namespace VTEX.SampleWebAPI
4+
namespace Vtex.SampleWebAPI
55
{
66
public class Program
77
{

src/SampleWebAPI/SampleWebAPI.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
<TargetFramework>netcoreapp2.0</TargetFramework>
55
<ReleaseVersion>1.0.1</ReleaseVersion>
66
<Description>Sample Web API project created to show how to use SplunkLogger library</Description>
7-
<RootNamespace>VTEX.SampleWebAPI</RootNamespace>
7+
<RootNamespace>Vtex.SampleWebAPI</RootNamespace>
88
</PropertyGroup>
99

1010
<ItemGroup>
1111
<Folder Include="wwwroot\" />
12-
<Folder Include="Logging\" />
1312
</ItemGroup>
1413

1514
<ItemGroup>
@@ -22,5 +21,6 @@
2221

2322
<ItemGroup>
2423
<ProjectReference Include="..\SplunkLogger\SplunkLogger.csproj" />
24+
<ProjectReference Include="..\VTEXSplunkLogger\VTEXSplunkLogger.csproj" />
2525
</ItemGroup>
2626
</Project>

src/SampleWebAPI/Startup.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
using System;
2-
using System.Net.Http;
3-
using System.Threading;
4-
using Microsoft.AspNetCore.Builder;
1+
using Microsoft.AspNetCore.Builder;
52
using Microsoft.AspNetCore.Hosting;
63
using Microsoft.Extensions.Configuration;
74
using Microsoft.Extensions.DependencyInjection;
85
using Microsoft.Extensions.Logging;
96
using Splunk;
107
using Splunk.Configurations;
11-
using VTEX.SampleWebAPI.Logging;
8+
using Vtex.SplunkLogger;
129

13-
namespace VTEX.SampleWebAPI
10+
namespace Vtex.SampleWebAPI
1411
{
1512
public class Startup
1613
{
@@ -74,7 +71,5 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
7471

7572
app.UseMvc();
7673
}
77-
78-
7974
}
8075
}

0 commit comments

Comments
 (0)