Use all arguments for the main logwriter constructor.

Also starts a typemap, since one is necessary to translate enums into
something readable.