logger: update test code
logger: hide interface newLogapi(), return *logger only in NewLogger()
logger: add SetRestartCommand()