add logging directives