<p><strong>Using superset on kubernetes, I would like to modify the events logged on the standard output.</strong></p>
<p>In the <a href="https://apache-superset.readthedocs.io/en/latest/installation.html#event-logging" rel="nofollow noreferrer">documentation</a> there's a python class that can be used to modify the logger.<br />
In the chart's values I've set :</p>
<pre><code>extraConfigFiles:
  stats_logger.py: |-
    class JSONStdOutEventLogger(AbstractEventLogger):
      def log(self, user_id, action, *args, **kwargs):
        ...
</code></pre>
<p>And</p>
<pre><code>configFile: |-
   ...
  EVENT_LOGGER = JSONStdOutEventLogger()
   ...
</code></pre>
<p>Unfortunalty the pod doesn't find the class:</p>
<pre><code>NameError: name 'JSONStdOutEventLogger' is not defined
</code></pre>
<p>There's no documentation beside that so I'm lost in the dark abyss of event logging...</p>
<p>Help would be greatly appreciated ! Thx</p>

Doctor
<p>I had the same issue.<br />
Superset doesn't give any clue but in my case I had to import <code>AbstractEventLogger</code> and <code>json</code>.</p>
<p>Just put these two lines above your <code>JSONStdOutEventLogger</code> class :</p>
<pre><code>from superset.utils.log import AbstractEventLogger
import json
</code></pre>
