WIP: finished allowing application to handle logging (first pass)