added array support for log message