theRAPTLab / gsgo

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

Logging 2.0 #440

Open benloh opened 2 years ago

benloh commented 2 years ago

The current log was designed for human-readable system events sorted by UADDR (the unique connection ID which changes every time the app is loaded in a browser) that occur infrequently on the timescale of seconds. This corresponds well to things like connections and most user 'actions' that are the result of a seconds-long thought process.

Realtime data needs to be logged on a milliseconds time scale. The proper 2.0 approach probably should involve buffering the raw binary data, and then processing the data into logs upon exit.


Rough raw notes:

Look in:

server-netinfo.NextJS_Middleware
  m_NetInfoRespond
  --  Include a logger object?
      RealTime/RTLogger -- high performance logger
client-netinfo
    http://localhost/urnet/netinfo