Reputation: 407
I have a list of Pg functions. I want to write a log while each of them being invoked. I create a table
call_logs(id serial,fn text,time timestsamp).
I want to log each invoking automatically, that's to say, I don't want to embed a statement in each function to insert record into the call_logs table. Is there any mechanism to trigger a logger function with caller, callee as parameters when the functions in my list are called?
Upvotes: 0
Views: 22