aspect-oriented techniques in python?
<p>So I have an interesting problem in Python, that could possibly be solved with aspect-oriented techniques. Here's the situation:</p>

<ol>
<li>I have a bunch of modules, each of which has a bunch of functions.</li>
<li>I have an executable that calls some set of functions in those modules.</li>
<li>When the executable calls one of those functions, I want a log statement generated with the details of the function call (name &amp; parameters)</li>
<li>When one of the modules calls one of the other modules' functions, I do NOT want any log statement generated.</li>
</ol>

<p>Is there any convenient way to do this in Python, without sticking logging statements inside every one of the modules' functions?</p>
