writeLog
writeLog (string, logfile, logname, collecting)
void writeLog(String msgTag, Object[] params) {