diff options
author | Urban Müller | 2018-05-15 17:58:04 +0200 |
---|---|---|
committer | Urban Müller | 2018-05-15 17:58:04 +0200 |
commit | 45fc347816f303c19fb484b9ba4f7bfa96f29f88 (patch) | |
tree | c072ce1cb342bdcd5be844e86b730617f2a55175 | |
parent | e59e4bb3e7c80aba50e7255021f04fe8c15031bb (diff) | |
download | itools-45fc347816f303c19fb484b9ba4f7bfa96f29f88.tar.gz itools-45fc347816f303c19fb484b9ba4f7bfa96f29f88.tar.bz2 itools-45fc347816f303c19fb484b9ba4f7bfa96f29f88.zip |
support server/logs, ultra/bin/log
-rw-r--r-- | it.class | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) == "/") |