Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
hello world AOP example with logging
class BookCollection {
return this.get({
isbn: isbn
}).then(book => {`Retrieving book ${isbn} - ${} has been succeed`);
}).catch(error => {
Logger.error(`Retrieving book ${isbn} has been failed. ${JSON.stringify(error)}`);
return null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment