new logger and start of debugging for matplot lib plots not appearing on ubuntu