Use the log facility
Be able to create the gl context