Added SOGo logs

This commit is contained in:
andryyy
2017-05-13 22:58:29 +02:00
parent 980acb507e
commit 2291b4e121
5 changed files with 92 additions and 4 deletions

View File

@@ -5228,6 +5228,14 @@ function get_logs($container, $lines = 100) {
return $data_array;
}
}
if ($container == "sogo-mailcow") {
if ($data = $redis->lRange('SOGO_LOG', 1, $lines)) {
foreach ($data as $json_line) {
$data_array[] = json_decode($json_line, true);
}
return $data_array;
}
}
return false;
}
?>