At the moment it is difficult to store logs on Roblox, unless you use an external service.
While I understand PlayFab has the ability to store logs, these are not persistent being only 180 days, which isn’t long enough to debug all issues and is an invite only program (albeit via request).
External services could be used, but by personnel policy I keep all data internal as don’t trust myself enough in designing secure systems to be GDPR compliant.
At the moment I use a really hacky method with ordered datastores, using the tag of an ordered data store to store the data, combined with time stamps to get order.
DataStoreService = game:GetService("DataStoreService")
function addToLogs(player, log)
time = os.time()
b64time = base64Function(currentTime)
key = base64Time .. "|" .. log
playerLogs = game:GetOrderedDataStore("Logs", "Player_" .. Player.UserId)
playerLogs:SetAsync(key, time)
end
If this was addressed, I’d have a clear reliable method to be able to analyse issues which occur which would be useful for handling enquiries from players & debugging.
I feel I am currently using a really hacky unsupported use case for OrderedDataStores and would like a method to handle this in a supported way.
It would be nice if there was some kind of DataStoreService extension similar to OrderedDataStores which would just log a strings in a time ordered way. Ideally there’d be a studio method for reading/viewing these logs.