@ use "\n" instead of endl for log
@ log: now possible to disable logging to file
@ adjust configure to support changing log system
- recover to normal