If i want to set up logging for `df.shape` pre an...
# hamilton-help
s
If i want to set up logging for
df.shape
pre and post function execution of nodes that return a
DataFrame
is this the
class hamilton.lifecycle.api.GraphExecutionHook
i would need to implement? Is this logging already available somewhere?
c
Hi Seth, so we do have
hamilton.plugins.h_logging
. This plugins is semi-experimental and isn't included in the docs (I have been meaning to get around to that). You can take a look at Add Context-Aware Synchronous/Asynchronous Logging Adapters by cswartzvi · Pull Request #1294 · apache/hamilton. Please use know if you run into any issues.
s
Thanks for the reference