theRAPTLab / gsgo

GEM-STEP Foundation repo migrated from GitLab June 2023
1 stars 1 forks source link

Research Logging #428

Open benloh opened 2 years ago

benloh commented 2 years ago

Look in server-logger.js Just call UR_HandleMessage('NET:SRV_LOG_EVENT', LOGGER.PKT_LogEvent); Format in serve-logger.js

benloh commented 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.

benloh commented 2 years ago

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.