Direct all logging via the logging resource if it exists.