created logging macros and made log facility var global so that every module in the chain can us it