A final bool variable logErrors used to determine if the errors should be logged.
logErrors
final bool logErrors;