LoggerWrapper.cs
1 // Copyright (c) Microsoft Corporation 2 // The Microsoft Corporation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 using System; 6 7 using EnvironmentVariablesUILib.Helpers; 8 using ManagedCommon; 9 10 namespace EnvironmentVariables 11 { 12 internal sealed class LoggerWrapper : ILogger 13 { 14 public void LogDebug(string message) 15 { 16 Logger.LogDebug(message); 17 } 18 19 public void LogError(string message) 20 { 21 Logger.LogError(message); 22 } 23 24 public void LogError(string message, Exception ex) 25 { 26 Logger.LogError(message, ex); 27 } 28 29 public void LogInfo(string message) 30 { 31 Logger.LogInfo(message); 32 } 33 34 public void LogTrace() 35 { 36 Logger.LogTrace(); 37 } 38 39 public void LogWarning(string message) 40 { 41 Logger.LogWarning(message); 42 } 43 } 44 }