Open benloh opened 2 years ago
In GitLab by @daveseah on Jul 27, 2022, 14:34
I'm making a simple wrapper for the client side that we can extend/standardize it. Joshua could also then use it freely.
In GitLab by @daveseah on Jul 27, 2022, 15:45
There is now a convenient UR.LogEvent('made-up tag', itemsArray)
where itemsArray
is a list of strings to be printed to the log separated by a TAB character (this pastes nicely into Excel). The separate character can be set to whatever is needed.
There is a wrinkle, though, in that the current app setup doesn't have a login system, so if you need to tag individual users in the system to identify them, we need additional identifying data. Currently, the device system is probably the best source of such data. Can revisit the code support needed once the data requirements for logging are worked out.
Look in server-logger.js Just call UR_HandleMessage('NET:SRV_LOG_EVENT', LOGGER.PKT_LogEvent); Format in serve-logger.js