Implementing logging in your Runbook
Until your Runbook is doing fine, logging is not often needed. But if there are problems, or maybe a case you didn't thought about during the initial Process of building your Runbooks, it is necessary to read some logs.
Getting ready
Runbooks already provide a log file, but only a very limited one with only less information about the start and end time and status; and if there is an error, the error message itself.
But this is not enough, so there should be a way to enhance the Logging of our Runbooks.
Navigate to your Runbook with the name 1.2.2-Reboot a Server
.
How to do it…
After the next Steps you will be able to activate enhanced Logging within your Runbooks, take care and only activate this for Debugging
- Right-click on your Runbook and select
Properties
:

- Navigate to the
Logging
tab:

- Select both options –
Store Activity-specific Published Data
andStore Common Published Data
.

- Save the
Properties
page by clicking onOK
and check in your Runbook.