Added some shader loging functionality.