Add logging functions with selectable log output targets