Details
Details
Am I doing something insanely stupid? I can't seem to get this to actually produce log output when I keyboard mash wantonly into maniphest task descriptions with this extension loaded underneath. Yes, I am highly confident my logging function works.
<?php final class PhutilProcessLogPathRule extends PhutilRemarkupRule { public function apply($text) { integrator_debug_log('processlogtest.log', 'omgplswork'); return $text; } }
Answers
Answers
Subclasses of PhutilRemarkupRule are not automatically picked up. Possibly they should be since this is a bit inconsistent, but there are okay-ish-reasons for them to work a little differently.
Extend PhabricatorRemarkupCustomInlineRule instead for automatic pickup, or make an application return the rule from getRemarkupRules() to activate it whenever that application is installed.
New Answer
New Answer