Rework hardcoded list of fields to extendable by modules
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3578189. --> Reported by: [murz](https://www.drupal.org/user/157092) Related to !12 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>For now, the list of fields is hardcoded as <code>const array Logger::LOGGER_FIELDS</code>, which is not good and not extendable.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>The plan is to make it extendable, to allow other modules to declare their fields and the default status (enabled or disabled by default). </p> <p>The idea is to produce an event and add a subscriber that generates the list of base fields. Other modules will be able to subscribe to that event and extend or modify the list.</p>
issue