Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,19 @@ ClientOperations clientOps
}
}

// Ensure that the log entries are in descending order.
if (null != logEntries?.Entries)
logEntries.Entries.Sort
(
(a, b) =>
{
if (a.DateTime == null && b.DateTime == null) return 0;
if (a.DateTime == null) return 1; // null goes after non-null
if (b.DateTime == null) return -1; // null goes after non-null
return b.DateTime.Value.CompareTo(a.DateTime.Value); // reverse order
}
);

// Create the directive.
clientOps.Directives.Add(new VAF.Configuration.Domain.ClientDirective.UpdateDashboardContent()
{
Expand Down
7 changes: 7 additions & 0 deletions MFiles.VAF.Extensions/Resources/DisplayLatestLogEntries.html
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,13 @@
</form>
</div>
<div id="scrollPanel">
<div>
Note that in multi-server instances the log data may be spread amongst multiple files.
This viewer attempts to pull data from all server nodes into one location but there
are situations where data may not be in the correct order, especially in high-volume
deployments or high-verbosity configurations.
If in doubt, always download the log files and manually inspect what each node is doing.
</div>
<div id="unstructured">
The logger is not using the default log layout, so structured formatting cannot be applied.
</div>
Expand Down
Loading