Changes

no edit summary
Line 1: Line 1: −
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
<pre class="header-style">This trigger will fire when the specified text is written to the MacroDroid system log. This allows you to monitor internal MacroDroid activity and trigger macros based on specific log entries.</pre>
MacroDroid writes to the system log every time it is triggered, runs an action or checks a constraint. These events can now trigger macros.
+
 
</pre>
+
''' Options '''
 +
 
 +
* '''Text''': The text pattern to match against log entries (supports Magic Text)
 +
* '''Match Type''':
 +
** '''Matches''': The log entry must exactly match the specified text
 +
** '''Contains''': The log entry must contain the specified text anywhere within it
 +
* '''Enable Regex''': When enabled, the text field is treated as a regular expression pattern for advanced matching
 +
* '''Ignore Case''': When enabled (and regex is disabled), the text matching is case-insensitive
 +
 
 +
''' Configuration '''
 +
 
 +
Enter the text you want to monitor for in the MacroDroid system log. You can use the Magic Text button to insert dynamic values.
 +
 
 +
When using regex mode, you can create powerful patterns to match complex log entries. Note that the "Ignore Case" option is automatically disabled when regex is enabled (use regex flags like (?i) for case-insensitive regex matching).
 +
 
 +
''' Examples '''
 +
 
 +
  <pre class="trigger-style">Triggers
 +
 
 +
System Log Entry (Error)</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Notification: MacroDroid Error Detected
 +
Set Variable: [ErrorCount] = [ErrorCount] + 1</pre>
 +
 
 +
''Monitor for errors in the MacroDroid log and track error count.''
 +
 
 +
''' Notes '''
 +
 
 +
* This trigger monitors the MacroDroid internal system log, not the Android system logcat.
 +
* Useful for debugging complex macro interactions or monitoring MacroDroid's internal operations.
 +
* When using regex, ensure your patterns are valid to avoid matching failures.
 +
* Magic Text can be used in the match text, allowing dynamic pattern matching based on variables.
 +
* This trigger is particularly useful for advanced users who want to create meta-macros that respond to MacroDroid's own activities.