Moved creation of log adapter.