Filled out shader logging functions.
Log activated but has a few bugs.