logrotate support added

Added rdoc support.
Added tests.