### `public function fetch($args = [], $output = null)`
fetch logs based on ID or WP_Query args
Logs are stored as posts. Check WP_Query docs to learn all args accepted in the $args parameter (@see https://developer.wordpress.org/reference/classes/wp_query/) You can also use a mapped property, such as name and description, as an argument and it will be mapped to the appropriate WP_Query argument
**Parameters:**
*`$args` — array — WP_Query args || int $args the log id
*`$output` — string — The desired output format (@see \Tainacan\Repositories\Repository::fetch_output() for possible values)
**Returns:** `\WP_Query|Array` — an instance of wp query OR array of entities;
### `public function log_inserts($new_value, $value = null)`
Insert a log when a new entity is inserted
**Parameters:**
*`$new_value` — Entity
*`$value` — Entity
**Returns:** `Entities\Log` — new created log
### `public function approve($log)`
**Parameters:**
*`$log` — Entities\Log
**Returns:** `Entities\Entity|boolean` — return insert/update valeu or false