The Log to File action logs custom messages to specified text files.

Configure the following:

  • Name. Enter a unique name for the action. This name displays in the Actions Library.
  • Description. Enter a short description about the action. This description displays next to the action in the Actions Library.
  • Log file. Enter the full path to the location where the log file will be written.
  • File type. Select either Text (.txt) or Log (.log) as the file type for the resulting text file.
  • Log file write mode. Select Append to have log messages appended to the Log file. Select Overwrite to have log messages overwrite existing log messages.
  • Log Message. Enter the message to be written to the log file. Additionally, you can use the System, Device, and/or Monitor dropdown menus within the dialog to automatically insert supported variables. The default log message is:

    %Device.ActiveMonitorDownNames is %Device.State on %Device.Type: %Device.HostName (%Device.Address).

    Details:

    Monitors that are down include: %Device.ActiveMonitorDownNames

    Monitors that are up include: %Device.ActiveMonitorUpNames

    Notes on this device (from device property page):

    %Device.Notes

    ----------------------------------------

    This message was logged on %System.Date at %System.Time

    Progress WhatsUp Gold