errorLogs
If you want enable error-logs to be logged, provide a lambda here.
Per default (or when passing null as sink here), error-logs will not be logged.
It's your discretion whether you want error-level logs in your debug / production app logged to somewhere or not.
Return
this
to chain calls.
Parameters
sink
The lambda which gets invoked to write the debug-level logs to, or null to disable error logging.