PatchOperation.LogText - notfood/PatchOperationHighlander GitHub Wiki

Writes text to console, very useful for debugging, don't understimate.

Examples

Basic usage, level can be Message, Warning (default) or Error:

<Operation Class="PatchOperation.LogText">
  <value>Hello</value>
  <level>Message</level>
</Operation>

Combined with PatchOperationSequence and PatchOperation.FindModByID

<Operation Class="PatchOperationSequence">
  <operations>
    <li Class="PatchOperation.LogText">
      <value>Is the highlander loaded?</value>
    </li>
    <li Class="PatchOperation.FindModByID">
      <mods>
        <li>ccl.patchoperation.highlander</li>
      </mods>
      <match Class="PatchOperation.LogText">
        <value>YES</value>
      </match>
      <nomatch Class="PatchOperation.LogText">
        <value>NO</value>
      </nomatch>
    </li>
    <li Class="PatchOperation.LogText">
      <value>Bye</value>
    </li>
  </operations>
</Operation>
⚠️ **GitHub.com Fallback** ⚠️