If LOG was initiated without "main_logger", logging would not work as
expected. This commit changes the approach by passing the logger as a
parameter.
Test Plan:
PASS: Check software-migrate logs at deploy start.
PASS: Check upgrade-scripts logs.
PASS: Check upgrade-script callers i.e activate.py logs.
PASS: Finish stx10 -> stx11 major release deployment.
Story: 2011357
Task: 52689
Change-Id: I5be8749395a8a49852185853f1d7ae8d95bf870b
Signed-off-by: Luis Eduardo Bonatti <LuizEduardo.Bonatti@windriver.com>