Made daily log rotation a configurable boolean option.