Add a new 'logging.format' option to control the formatting of the logs.
Reformat the logging classes. Extract the LoggingHandler to its own file. Add proper documentation. Fix typos.