introduce uploadlog command for issue  #4047