Click here to Skip to main content
15,897,371 members

Response to: How to change the format of log

Revision 1
Parser will get three information(On, Active, Temperature) at time X, then parser write it to file like this.

printf( "%s status of machine is %s", X, On );
printf( "%s Mode of machine is- %s", X, Active );
printf( "%s Temp is- %s", X, Temperature);

Please change like this

printf( "%s %s,%s,%s", X, On, Active, Temperature );
Posted 19-Sep-12 21:33pm by Santhosh G_.