Skip to content

Commit

Permalink
Fixed logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 20, 2020
1 parent e3bb8fb commit 7a03605
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions Agent/Agent.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="3.1.3" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="3.1.3" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.1.3" />
<PackageReference Include="Microsoft.Extensions.Logging.EventLog" Version="3.1.3" />
<PackageReference Include="Microsoft.Management.Infrastructure" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="3.1.3" />
Expand Down
2 changes: 1 addition & 1 deletion Agent/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private static void BuildServices()
var serviceCollection = new ServiceCollection();
serviceCollection.AddLogging(builder =>
{
builder.AddConsole().AddEventLog();
builder.AddConsole().AddDebug();
});
serviceCollection.AddSingleton<DeviceSocket>();
serviceCollection.AddScoped<ChatClientService>();
Expand Down
2 changes: 1 addition & 1 deletion Desktop.Linux/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ private void BuildServices()
var serviceCollection = new ServiceCollection();
serviceCollection.AddLogging(builder =>
{
builder.AddConsole().AddEventLog();
builder.AddConsole().AddDebug();
});

serviceCollection.AddSingleton<IScreenCaster, ScreenCasterLinux>();
Expand Down
2 changes: 1 addition & 1 deletion Desktop.Win/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ private void BuildServices()
var serviceCollection = new ServiceCollection();
serviceCollection.AddLogging(builder =>
{
builder.AddConsole().AddEventLog();
builder.AddConsole().AddDebug().AddEventLog();
});

serviceCollection.AddSingleton<CursorIconWatcher>();
Expand Down
1 change: 1 addition & 0 deletions ScreenCast.Core/ScreenCast.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="3.1.3" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="3.1.3" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.1.3" />
<PackageReference Include="Microsoft.Extensions.Logging.EventLog" Version="3.1.3" />
<PackageReference Include="Microsoft.MixedReality.WebRTC" Version="1.0.3" />
<PackageReference Include="System.Drawing.Common" Version="4.7.0" />
Expand Down
2 changes: 1 addition & 1 deletion ScreenCast.Linux/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private static void BuildServices()
var serviceCollection = new ServiceCollection();
serviceCollection.AddLogging(builder =>
{
builder.AddConsole().AddEventLog();
builder.AddConsole().AddDebug();
});

serviceCollection.AddSingleton<IScreenCaster, ScreenCasterLinux>();
Expand Down
2 changes: 1 addition & 1 deletion ScreenCast.Win/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private static void BuildServices()
var serviceCollection = new ServiceCollection();
serviceCollection.AddLogging(builder =>
{
builder.AddConsole().AddEventLog();
builder.AddConsole().AddDebug().AddEventLog();
});

serviceCollection.AddSingleton<CursorIconWatcher>();
Expand Down

0 comments on commit 7a03605

Please sign in to comment.