Added a fast logging function.

A handy logging function for debugging purposes.