Created
August 20, 2017 10:22
-
-
Save k1r0s/f9a32d4504ba986a7d4b38c498b24986 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // normal aproach | |
| public doStuff () { | |
| console.log(`we entered doStuff method with ${JSON.stringify(arguments)}`); | |
| ... | |
| const result; | |
| console.log(`we exit doStuff method with ${JSON.stringify(result)}`) | |
| return result; | |
| } | |
| // advice aproach | |
| @Log | |
| public doStuff () { | |
| ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment