colour logging brought up to date with that done by R scripts