Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:5110:    all crawled variants and the saving of the entry to the    database.</td></tr>    </tbody></table></dd>   </dl>"), 0, lambda(){ return !query("Log");});       // Make the widget above a bit larger.    getvar ("LogFormat")->rows = 20;    getvar ("LogFormat")->cols = 80;       // FIXME: Mention it is relative to getcwd(). Can not be localized in pike 7.0. -  defvar("LogFile", "$LOGDIR/"+Roxen.short_name(name)+"/Log", +  string log_suffix = ".%y-%m-%d"; +  if (name == "Administration Interface") log_suffix = ".%y-%m"; +  defvar("LogFile", "$LOGDIR/"+Roxen.short_name(name)+"/Log" + log_suffix,    DLOCALE(30, "Logging: Log file"), TYPE_FILE,    DLOCALE(31, "The log file. "    "A file name. Some substitutions will be done:"    "<pre>"    "%y Year (e.g. '1997')\n"    "%m Month (e.g. '08')\n"    "%d Date (e.g. '10' for the tenth)\n"    "%h Hour (e.g. '00')\n"    "%H Hostname\n"    "</pre>")    ,0, lambda(){ return !query("Log");});    -  defvar("LogFileCompressor", "", +  string default_compressor = ""; +  foreach(({ "/bin/bzip2", "/usr/bin/bzip2", "/bin/gzip", "/usr/bin/gzip", }), +  string bin) { +  if (Stdio.is_file(bin)) { +  default_compressor = bin; +  break; +  } +  } +  defvar("LogFileCompressor", default_compressor,    DLOCALE(258, "Logging: Compress log file"), TYPE_STRING,    DLOCALE(259, "Path to a program to compress log files, "    "e.g. <tt>/usr/bin/bzip2</tt> or <tt>/usr/bin/gzip</tt>. "    "<b>Note&nbsp;1:</b> The active log file is never compressed. "    "Log rotation needs to be used using the \"Log file\" "    "filename substitutions "    "(e.g. <tt>$LOGDIR/mysite/Log.%y-%m-%d</tt>). "    "<b>Note&nbsp;2:</b> Compression is limited to scanning files "    "with filename substitutions within a fixed directory (e.g. "    "<tt>$LOGDIR/mysite/Log.%y-%m-%d</tt>, "