tdb2: rearrange log function to put data arg at the end.