Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Microsoft.Extensions.Logging.Console/ConsoleLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System.Runtime.InteropServices;
using System.Text;
using Microsoft.Extensions.Logging.Console.Internal;
using Microsoft.Extensions.PlatformAbstractions;

namespace Microsoft.Extensions.Logging.Console
{
Expand Down Expand Up @@ -41,7 +41,7 @@ public ConsoleLogger(string name, Func<string, LogLevel, bool> filter, bool incl
Filter = filter ?? ((category, logLevel) => true);
IncludeScopes = includeScopes;

if (PlatformServices.Default.Runtime.OperatingSystem.Equals("Windows", StringComparison.OrdinalIgnoreCase))
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
Console = new WindowsLogConsole();
}
Expand Down
4 changes: 2 additions & 2 deletions src/Microsoft.Extensions.Logging.Console/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"xmlDoc": true
},
"dependencies": {
"System.Runtime.InteropServices.RuntimeInformation": "4.0.0-*",
"Microsoft.Extensions.Configuration.Abstractions": "1.0.0-*",
"Microsoft.Extensions.Logging.Abstractions": "1.0.0-*",
"Microsoft.Extensions.PlatformAbstractions": "1.0.0-*"
"Microsoft.Extensions.Logging.Abstractions": "1.0.0-*"
},
"frameworks": {
"net451": {
Expand Down