I've built a basic logging function using the format of modules so that logging may be accomplished with a simple:
printD("log this comment")
printDt("log that comment with a tab")
The log files have date and timestamps before each entry, separated by a space for printD and a tab for printDt.
If I see several people saying this would be useful to them, I'll go ahead and try to share it.
I found being unable to log stuff in Windows really hampered my ability to debug and develop.
I've also address how to create modules under the share/scripts directory so that libraries of useful routine may be built -- this is something I see that is much needed here.