First of all, what a fantastic tool streamline looks to be! i'm quite excited about how this is going to simplify our node codebase.
Here is the question:
In our existing (non-streamline) node codebase, i have a wrapper for asynchronous functions that does entrance/exit logging. It logs the call parameters (formal argument names and actual argument values), as well as the error/results when the callback is later invoked. It also does some niceties like logging the time spent in each function call between invocation and async completion. I suppose it's poor man's AOP for function level logging and timing, and its proved quite useful to us. Anyhow, this is implemented by rooting around inside the function object, and by wrapping the function as well as its callback to get all the context we need.
So, enter streamline. My existing logging wrapper does not play well with streamline's internal function wrapping. Does a solution for this type of entrance/exit logging already exist under streamline? if not, what would be the best way to go about adding this -- should i do this outside of streamline, or is forking a better approach?
From the little bit of looking i did so far, i did see the F.fstreamlineFunction member of the streamline wrapper, which would at least allow me to get to the original function to query its formal arguments and such from the outside (although that's a bit of a hack to depend on it...)
Anyhow, any suggestions appreciated.
Thanks,
Seth