search: nicely display text and logs other than T0

Issue #163 new
Trek Hopton created an issue

Currently it is possible to search and display logs on T0 in a nice readable format. However it would be good to have other ways of displaying text on other pins eg. T1, T2, T3.

I propose that this is done in a switch statement in logs.js' initLogs function. An extra parameter for pin name will have to be added for this. I propose that we keep the current display mode for T0 (with specific columns for Level,Time,Caller,Message), for pins that we know will contain JSON we have a generalised JSON display mode, and for anything else (default) we just a have a big wrapped text box to display the text. This way when new pins are used, they will either just be printed by default or we can add a case for them in logs.js to display them in a custom way.

Comments (0)

  1. Log in to comment