Move logging queue out of the LoggingThread class