I think this field needs to be final for this code snippet to compile (otherwise the anonymous nested class can't access errorLog)