space-wizards / space-station-14

A multiplayer game about paranoia and chaos on a space station. Remake of the cult-classic Space Station 13.
https://spacestation14.io
MIT License
2.7k stars 3.39k forks source link

Logs' JSON should be standardized (lets just refactor logs ;) #16954

Open Chief-Engineer opened 1 year ago

Chief-Engineer commented 1 year ago

Description

The JSON info paired with logs is extremely inconsistent and should be standardized to some extent. Some logs will have info that no other type of log will, but there's a lot of information that almost every log has. When log viewers are able to make use of the JSON data for filtering, it'd be extremely useful for them to be consistent.

This is possible to some degree by just being more consistent with the existing system, and I'll likely do that if we get a way to use the data for filtering, but if we make major changes it'd be better to update logs before putting work into the filtering system.

Refactoring the log format entirely may better serve the goal of this better than modifying the existing system.

Information logs should have

Possible fields

This list was made before "Information logs should have", which I added about a week after making this issue.

Additional thoughts

There's a lot that needs to be considered here:

juliangiebel commented 1 year ago

Web logs already makes use of the json for adding the player name and "not yet implemented" linking to player pages. grafik

The text search indexes the json instead of just the message already (which is a bit wack but it works)

I agree with this issue though

Chief-Engineer commented 1 year ago

I knew that weblogs could access the data but didn't realize it also looks in it during the search