Methods
-
Class construct
-
List logs for a container.
-
Get the contents of a particular log file.
-
Remove a particular log file.
-
Delete a particular log file - alias of remove.
Methods Details
-
public function __construct(array $config, variable $curl)Class construct
-
public function all(string $name)List logs for a container.
$lxd->containers->logs->all('conainer-name');
-
public function read(string $name, string $log)Get the contents of a particular log file.
$lxd->containers->logs->read('conainer-name', 'log-name.log');
-
public function remove(string $name, string $log)Remove a particular log file.
$lxd->containers->logs->remove('conainer-name', 'log-name.log');
-
public function delete(string $name, string $log)Delete a particular log file - alias of remove.
$lxd->containers->logs->delete('conainer-name', 'log-name.log');