node-bunyan icon indicating copy to clipboard operation
node-bunyan copied to clipboard

Add 'n' depth stack for src attribute

Open nathHy opened this issue 8 years ago • 3 comments

This PR adds the ability to change the src depth via an integer value instead of a boolean Related to #72

This allows users to wrap their logger in functions and still maintain the correct src path/filename/function call when viewing logs.

  • Updated readme
  • Updated tests
  • Fixes small typo in contributing.md

Let me know if theres anything I missed

Also I couldn't get the make check to function correctly. It kept complaining about /bin/sh not having [[ but it still passed the linter

nathHy avatar Jul 04 '17 07:07 nathHy

@trentm Any updates on this one?

nathHy avatar Jul 31 '17 23:07 nathHy

This would be helpful, since we ran into the same issue with src: true and wrapped logger methods.

EricByers avatar Feb 14 '18 16:02 EricByers

@trentm Any updates on this one?

Sonivaibhav26 avatar Nov 22 '18 10:11 Sonivaibhav26