Make log able to indicate how object was created.