MT#7705 - add "$data" argument into log methods to manually pass data if required. remove trailing whitespaces