/** Setter function for numeric type. */ protected function setNumeric($property, $value) { try { $this->{$property} = LoggerOptionConverter::toNumericEx($value); } catch (Exception $ex) { $value = var_export($value, true); $this->warn("Invalid value given for '{$property}' property: [{$value}]. Expected a number. Property not changed."); } }