netcreateorg / netcreate-itest

Developing the 2.0 version of NetCreate
https://github.com/netcreateorg/netcreate-2018
Other
0 stars 0 forks source link

Feature: Structure Research Logs #112

Closed benloh closed 7 months ago

benloh commented 7 months ago

Addresses #111

We added a new logging command that provides a more structured output for research logs.

Specifically, each record now starts with:

Per Kalani's request, we've added headings to that match. Though "DataID" and "DataDetail" might not be entirely accurate for all log items. The headings at least save you the trouble of adding the headers by hand.

The output looks like this:

Date    Time    NetName Addr    Token   Action  DataID  DataDetail
2023/11/30  17:07:25    focus   -   -   NETCREATE APPSERVER SESSION LOG for 2023/11/30 Thursday 17:07:25
2023/11/30  17:07:25    focus   -   -   ---
2023/11/30  17:07:44    focus   UADDR_01    -   joined network
2023/11/30  17:07:44    focus   UADDR_01    -   getdatabase
2023/11/30  17:07:46    focus   UADDR_01    FOCUS-B-LPJ select node 1   Manresa
2023/11/30  17:07:48    focus   UADDR_01    FOCUS-B-LPJ select node 2   capitola

Please give it a thorough QA pass. I believe I've caught everything, but there are always possible stray items.