eyedeekay / sam3

Go library for the I2P SAMv3.0 bridge, used to build anonymous/pseudonymous end-to-end encrypted sockets.
The Unlicense
22 stars 8 forks source link

Added logging #11

Closed hkh4n closed 1 month ago

hkh4n commented 1 month ago

There are three levels: Debug, Warn and Error. Enabled by setting the environment variable DEBUG_I2P to either "debug", "warn" or "error". Defaults to omitting verbosity. And if DEBUG_I2P is set to an unrecognized variable, it will default to debug.

eyedeekay commented 1 month ago

Same story as the other PR, please document the behavior of the debug option re: unknown values in the README.md, then I'll merge it, otherwise it all looks good to me.