Fix: ensure the optionsWhitelist is built before we create the defaultLogger
New: SetOptions() added
Fix: missing comment
Fix: missing code for Print() and Println()
Fix: missing error check
New: trivial example code