update log init and deinit