add examples for error logging