nestjs-pino
nestjs-pino copied to clipboard
[FEATURE REQUEST] Log function start and end automatically
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.
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 😀
Also, it could print the function name automatically..would be awesome.:-)
Any update on this?