Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
hello world AOP no need?
let originalFunction = Collection.prototype.getNameByISBN;
Collection.prototype.getNameByISBN = function () {
let result = originalFunction.apply(this, arguments);
Logger.info(`Retrieving ${result.isbn} - ${result.name} has been succeed`);
return result;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment