tomcucinotta / distwalk

Distributed processing emulation tool
GNU General Public License v3.0
1 stars 4 forks source link

Categorization of debug messages in dw_log() #43

Open deRemo opened 6 months ago

deRemo commented 6 months ago

The dw_log() function is full of clutter that may be not useful for a certain debugging session, making the simple print-and-pray approach more manageable. We need a way to categorize debug information and let the user specify the subset of debug information he's interested in.

Something along the line of

./dw_client -LOG [CONNECTION|STORAGE|ERROR] 
deRemo commented 6 months ago

Check out MongoDB logging system: https://github.com/mongodb/mongo/blob/master/docs/logging.md

tomcucinotta commented 6 months ago

https://aquosa.sourceforge.net/aquosa-docs/aquosa-qosres/html/qos__debug_8h.html :-)! Features:

But, I don't really think we need it (for now)

tomcucinotta commented 6 months ago

Fundamentally the same, but without the kernel compatibility stuff from AQuoSA (you could compile modules in-kernel or in-library): https://github.com/tomcucinotta/oml/blob/main/oml_debug.h Same notes as above