Generic log function for use in PFAEngine.log.
Just prints out the message (with namespace if not None).