Log autoflush

Gives the possibiliy to remove the flushes in the log listener. It increases doctrine performance a lot when bulk inserts/updates are needed.