Skip to content

Commit 27e448b

Browse files
author
Kester Maddock
committed
Log the current time for basic profiling
1 parent 8e42405 commit 27e448b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SharedProject/Impl/Logger.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ private void LogImpl(object[] message, bool withTitle)
6060
{
6161
try
6262
{
63+
var logTime = DateTime.Now;
6364
var messageList = new List<string>(message?.Select(x => x?.ToString()?.Trim(' ', '\r', '\n')).Where(x => !string.IsNullOrWhiteSpace(x)));
6465

6566
if (!messageList.Any())
@@ -85,7 +86,7 @@ private void LogImpl(object[] message, bool withTitle)
8586

8687
if (withTitle)
8788
{
88-
_pane.OutputStringThreadSafe($"{Environment.NewLine}{Vsix.Name} : {logs}{Environment.NewLine}");
89+
_pane.OutputStringThreadSafe($"{Vsix.Name} {logTime}: {logs}{Environment.NewLine}");
8990
}
9091
else
9192
{

0 commit comments

Comments
 (0)