Piyuish Joshi, logistic regression is used when the dependent variable is not continuous but categorical.
For example, if you would like to investigate the relationship between depression and stroke, then depression is the continuous predictor variable and stroke the binary dependent variable (coded 1/0 = yes/no).