make a lib for log and configure in my program