centralize logging and cc syslog

Change-Id: I4d09ee8ede68efaaa07018e765c5ad5817587753
deal with logfile rotation

Change-Id: Ie3904a4211371437c82e633ffa09c73a7ed54a6e