Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Log function start and end automatically #200

Open
amit12cool opened this issue Feb 7, 2020 · 3 comments
Open

[FEATURE REQUEST] Log function start and end automatically #200

amit12cool opened this issue Feb 7, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@amit12cool
Copy link

Is your feature request related to a problem? Please describe.
Avoid writing logs on each function. Lets say I want to write function entry and exit log in 'INFO' level, so I can have a option like a decorator which I can mention on top of function something like @loggable, then the logs with function argument will be printed on function start and function end.

Describe the solution you'd like
It would avoid writing tedious log line on each function.

Describe alternatives you've considered
NA

Additional context
Might be there are packages existing for Java on the same lines.

@amit12cool amit12cool added the enhancement New feature or request label Feb 7, 2020
@iamolegga
Copy link
Owner

Also I think that it should be configurable, which level and maybe something more, like logArguments.

Good, by the way if anyone is seeing this, PR are welcome, before I find the time to start working on this 😀

@amit12cool
Copy link
Author

Also, it could print the function name automatically..would be awesome.:-)

@amit12cool amit12cool reopened this Feb 7, 2020
@gharena
Copy link

gharena commented Apr 22, 2022

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants