update docs with an example of how to log from C