Initialisation Order
- logoutbuf
- logoutbuf_init
- ...
- basic_ios
- basic_ostream
- logostream
logoutbuf and logoutbut_init are now called before anything else and an exception thrown at any point will not now cause undefined behavior. However, the private virtual inheritance means that the logoutbuf and logoutbut_init constructors must either be default constructors or called from the most derived class. I have opted for making them default.