Add log rotation

Log will rotate when it gets close to 1MB with a maximum
of 3 backups.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>