Skip to main content

Best practices on Setup logging for Process Elements

Disabling logging for individual Elements

Ossi Galkin avatar
Written by Ossi Galkin
Updated over a year ago

Setup logging for Process Elements

In some cases it is necessary to disable logging for individual Elements. A common use case is OAuth2 authentication. If you need to authenticate for some service using OAuth2, you first need to fetch the token from an authentication service. To fetch the token you can use Frends Tasks such as Frends.Web.RestRequest or Frends.Web.HttpRequest. After you have fetched the token you can use it in another Task. The problem here is that if you are using either the "default" or "Everything" log levels in the Process, Tasks will log the token that is fetched from the authentication service. In this case, you should consider skipping the logging of results and parameters for Elements which are using the fetched token.

Did this answer your question?