Add logs to gitignore.
Add integration test for publish feauture.