Create logger.php

This is an logger I use to determine where leaks might be happening in the API, you don't need to use it and the API will work fine without it. If you do have it you can get a reading of log interactions between functions.