Skip to content

Commit 8269679

Browse files
committed
DebugLogManager.GetAllLogs now provides a bit more information
1 parent 714b1d1 commit 8269679

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Plugins/IngameDebugConsole/Scripts/DebugLogManager.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,9 +1763,9 @@ public string GetAllLogs()
17631763
}
17641764

17651765
if( uncollapsedLogEntriesTimestamps != null )
1766-
length += count * 12; // Timestamp: "[HH:mm:ss]: "
1766+
length += count * 30;
17671767

1768-
length += 100; // Just in case...
1768+
length += 200; // Just in case...
17691769

17701770
StringBuilder sb = new StringBuilder( length );
17711771
for( int i = 0; i < count; i++ )
@@ -1774,13 +1774,16 @@ public string GetAllLogs()
17741774

17751775
if( uncollapsedLogEntriesTimestamps != null )
17761776
{
1777-
uncollapsedLogEntriesTimestamps[i].AppendTime( sb );
1777+
uncollapsedLogEntriesTimestamps[i].AppendFullTimestamp( sb );
17781778
sb.Append( ": " );
17791779
}
17801780

17811781
sb.AppendLine( entry.logString ).AppendLine( entry.stackTrace ).AppendLine();
17821782
}
17831783

1784+
sb.Append( "Current time: " ).AppendLine( ( System.DateTime.UtcNow + localTimeUtcOffset ).ToString( "F" ) );
1785+
sb.Append( "Version: " ).AppendLine( Application.version );
1786+
17841787
return sb.ToString();
17851788
}
17861789

0 commit comments

Comments
 (0)