Added capability to log with an object's origin.