protected function toErrorLog(EntityInterface $entity, $depth = 4)
    {
        return sprintf(
            '[%s] Persisting audit log failed. Data:' . PHP_EOL  . '%s',
            __CLASS__,
            Debugger::exportVar($entity, $depth)
        );
    }
protected function toErrorLog(EntityInterface $entity, $depth = 4)
    {
        return sprintf(
            '[%s] Persisting audit log failed. Data:' . PHP_EOL  . '%s',
            __CLASS__,
            Debugger::exportVar($entity, $depth)
        );
    }
protected function toErrorLog ( EntityInterface $ entity , $ depth = 4 ) { return sprintf ( '[%s] Persisting audit log failed. Data:' . PHP_EOL . '%s' , __CLASS__ , Debugger :: exportVar ( $ entity , $ depth ) ) ; }
Converts an entity to an error log message.

@param \Cake\Datasource\EntityInterface $entity The entity to convert.
@param int $depth The depth up to which to export the entity data.
@return string
Converts an entity to an error log message .