Skip to content

Instantly share code, notes, and snippets.

@ludovicwyffels
Created September 7, 2019 15:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
import logger from '../logSetup';
processLoan(...) {
logger.debug(">>>> Entering processLoan()");
// ... process
logger.debug(`Processing user loan with id ${userService.getUser().getId()}`);
// this might throw error, when getUser returns undefined
logger.debug("<<<< Exiting processLoan()");
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment