Fix autocompletion

When the autocompletion is activated, `setLoggerConfiguration` wasn't called and thus produces the exception. So I removed the `setLoggerConfiguration` and moved all logic from it into constructor.