Added log support. Logging not implemented yet.