Implement log level, fix #72