Initialize log before starting ui thread.