Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
madskristensen committed Feb 17, 2016
1 parent ed6872e commit 5fa7417
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/Helpers/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

public static class Logger
{
private static IVsOutputWindowPane pane;
private static object _syncRoot = new object();
private static IServiceProvider _provider;
private static string _name;
static IVsOutputWindowPane pane;
static object _syncRoot = new object();
static IServiceProvider _provider;
static string _name;

public static void Initialize(IServiceProvider provider, string name)
{
Expand All @@ -25,12 +25,12 @@ public static void Log(string message)
{
if (EnsurePane())
{
pane.OutputString(DateTime.Now.ToString() + ": " + message + Environment.NewLine);
pane.OutputString(DateTime.Now + ": " + message + Environment.NewLine);
}
}
catch
catch (Exception ex)
{
// Do nothing
System.Diagnostics.Debug.Write(ex);
}
}

Expand All @@ -43,7 +43,7 @@ public static void Log(Exception ex)
}
}

private static bool EnsurePane()
static bool EnsurePane()
{
if (pane == null)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Helpers/Telemetry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
/// </summary>
public static class Telemetry
{
private static TelemetryClient _telemetry;
private static DTEEvents _events;
static TelemetryClient _telemetry;
static DTEEvents _events;

/// <summary>Initializes the telemetry client.</summary>
public static void Initialize(DTE2 dte, string version, string telemetryKey)
Expand Down

0 comments on commit 5fa7417

Please sign in to comment.