Make log() work not only for strings.