Log file rotation and format output
Add static lib build settings