Redirecting scripting logs to a separate log file
You can redirect your scripting logs to a separate log file. This feature is convenient for troubleshooting scripts.
Procedure
- In the Logging application, click Manage Appenders from the More Actions menu.
- In the Manage Appenders dialog, click New Row.
- In the Appender field, enter the name ScriptingOnly.
- In the Appender Implementation Class field, enter psdi.util.logging.MXFileAppender.
- In the File Name field, enter a name, for example, autoscript.log.
- Accept the default values for the other items.
- Click OK to save the new appender.
- In the Root Loggers window, locate the autoscript logger.
- Click the chevron button next to autoscript to expand the details.
- Click the Manage Appenders icon next to the Appenders field.
- Select only the appender you created earlier, which is ScriptingOnly, and deselect any other appender previously associated with this logger.
- Click OK to save the new association. From the Select Action menu click Apply for the log settings to take effect.