Script logging

Version: 3.4

Sitecore Content Hub users can log information from within the scripts by selecting a logging level (in the UI) and using the appropriate logging operations.

Selecting a minimum log level

The minimum log level can be selected using the Script User Interface on the script edit page:

  1. In the script interface, edit the General settings by clicking on the Edit icon.

  2. Select the minimum log level.

  3. Save the changes.

Warning

When using scripting, it is not possible to change the minimum log level on the default IMClient.Logger. Change the minimum log level from the UI instead.

Note

By default, the minimum log level is set not set and displays None, this defaults to the Info log level in the SDK.

Note

The maximum limit of log entries per script is 50.

Viewing logs

Scripting logs can be viewed by pressing View logs button on the overview page or the script details page.

See also

Do you have some feedback for us?

If you have suggestions for improving this article,