I'm starting the test from command line. Is there any way in which i can produce log file in the same form as the summary report listener from GUI mode ?
Your question contains the answer.
Just run JMeter in non-GUI mode as per guide.
Voila, you now have summary results.
Another option is using a JMeter Cloud Plugin which generates not only summary report, but produces informative and professional-looking graphs which help in load test results analysis and has different test run results comparison feature.
Check sample report if you're interested.