Agent-Hellboy / log_call

library to log function or method calls, this can be used in middleware to fetch results from a server.
MIT License
1 stars 1 forks source link

Change log_call decorator to accept custom function for logging #1

Open Agent-Hellboy opened 1 year ago

Agent-Hellboy commented 1 year ago

Currently, log_call decorator is using the python std module logging module internally to log message

@log_call
class A:
    def __init__(self):
        pass

    def a(self,*args,**kwargs):
        pass

log_call should receive a param where we can pass a custom logging function to log the message as people can use click or several other libs which provide logging facility for logging

Young8881 commented 5 months ago

Patch

Agent-Hellboy commented 5 months ago

Patch

what?