improve log factory, fix travis build