Commit Graph

8 Commits

Author SHA1 Message Date
Ben Marsh
53666aa143 Horde: Allow log value formatters to write JSON output directly to the output stream, and add support for annotating FileReference objects.
#preflight 62867f7415019f64774c2d9d

[CL 20284475 by Ben Marsh in ue5-main branch]
2022-05-19 14:34:21 -04:00
Ben Marsh
c72605bcc7 Fix some analyzer warnings.
#preflight none

[CL 19535012 by Ben Marsh in ue5-main branch]
2022-03-28 18:54:42 -04:00
Ben Marsh
cda1b66bba Reformat EpicGames.Core according to standard coding conventions.
#preflight 623cd2e84368f558e30b4a9e

[CL 19502309 by Ben Marsh in ue5-main branch]
2022-03-24 16:35:00 -04:00
Ben Marsh
6d5f35aba9 Horde: Fix conversion of default logger events to LogEvent objects leaving key names inside properties.
[CL 18363605 by Ben Marsh in ue5-main branch]
2021-12-02 21:51:22 -05:00
Ben Marsh
4febbb2dac Horde: Move structured logging into shared library, and add support for passing through preformatted log output.
This will allow UAT to output structured log events directly without having to rely on a secondary post-processing step in the Horde agent, and also allows post-processing output from tools with additional context closer to the source.

[CL 18088636 by Ben Marsh in ue5-main branch]
2021-11-08 12:18:49 -05:00
Ben Marsh
933a49b235 Horde: Add strongly typed JobId, LeaseId, and LogId structs (via ObjectId<>, which operates similarly to StringId<>), and register formatters to add a type attribute to any structured log data.
Messages in audit logs will now include such properties in the format {"$type":"JobId", "$text":"123123123123123123"}.

#fyi Josh.Engebretson

[CL 17865404 by Ben Marsh in ue5-main branch]
2021-10-19 16:12:44 -04:00
Ben Marsh
6719d62843 Horde: Add a generic log for operations performed by an agent, which includes a trace of any setting changes (with the user that made them) as well as any work performed, sessions started/ended, autoscaling operations and so on.
The /api/v1/agents/XXX/history endpoint returns a list of log messages, queryable by time range and supporting pagination.

#fyi Josh.Engebretson

[CL 17840115 by Ben Marsh in ue5-main branch]
2021-10-17 15:30:49 -04:00
Ben Marsh
8077eb0e26 Horde: Add an AuditLog class, which can be used to trace events corresponding to a particular object. Events are standard message templates.
[CL 17830819 by Ben Marsh in ue5-main branch]
2021-10-15 12:47:22 -04:00