add support for size based log rotation
Merge pull request #344 from jespada/sizebased-logrotation

add support for size based log rotation