toLoggingBackend method
Convert from a SYZ_LOGGING_BACKEND
member.
Implementation
LoggingBackend toLoggingBackend() {
switch (this) {
case SYZ_LOGGING_BACKEND.SYZ_LOGGING_BACKEND_NONE:
return LoggingBackend.none;
case SYZ_LOGGING_BACKEND.SYZ_LOGGING_BACKEND_STDERR:
return LoggingBackend.stderr;
default:
throw SynthizerError(
'Unrecognised `SYZ_LOGGING_BACKEND` member.',
this,
);
}
}