replaced trigger_error calls by Logger methods
strict callable type