errorLoggingMethod implemented