fix: db.Task.logger can not be set in the constructor.