nestjs-pino icon indicating copy to clipboard operation
nestjs-pino copied to clipboard

[FEATURE REQUEST] Log function start and end automatically

Open amit12cool opened this issue 5 years ago • 3 comments

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 avatar Feb 07 '20 11:02 amit12cool

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 😀

iamolegga avatar Feb 07 '20 11:02 iamolegga

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

amit12cool avatar Feb 07 '20 12:02 amit12cool

Any update on this?

gharena avatar Apr 22 '22 02:04 gharena