From 45fc347816f303c19fb484b9ba4f7bfa96f29f88 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 15 May 2018 17:58:04 +0200 Subject: support server/logs, ultra/bin/log --- it.class | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/it.class b/it.class index 83cead1..e56c4f2 100644 --- a/it.class +++ b/it.class @@ -87,7 +87,8 @@ static function log($name /* ... */) */ static function log_line($name, $line) { - $basefn = substr($name, 0, 1) == "/" ? $name : $GLOBALS['ULTRAHOME'] . "/log/$name"; + $log = $GLOBALS['ULTRAHOME'] == "/opt/ultra/bin" ? "../log" : ($GLOBALS['ULTRASITE'] == "server" ? "logs" : "log"); + $basefn = substr($name, 0, 1) == "/" ? $name : $GLOBALS['ULTRAHOME'] . "/$log/$name"; $fullfn = $basefn . "-" . date('Ymd'); if (substr($fullfn, 0, 1) == "/") -- cgit v1.2.3