Logging

Add logging option