Added logf() function to context.

For formatted logging.