Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.614 2006/09/07 07:26:59 noring Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.615 2006/09/08 07:13:55 noring Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:918:    {    // Free the old one.    destruct(function_object(log_function));    log_function = 0;    }    // Only try to open the log file if logging is enabled!!    if(query("Log"))    {    string logfile = query("LogFile");    if(strlen(logfile)) -  log_function = roxen.LogFile( logfile )->write; +  log_function = roxen.LogFile(logfile, query("LogFileCompressor"))->write;    }   }      // Parse the logging format strings.   private inline string fix_logging(string s)   {    sscanf(s, "%*[\t ]%s", s);    return s;   }   
Roxen.git/server/base_server/configuration.pike:4121:    "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", "", +  DLOCALE(0, "Logging: Compress log file"), TYPE_STRING, +  DLOCALE(0, "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>, " +  "not <tt>$LOGDIR/mysite/%y/Log.%m-%d</tt>)."), +  0, lambda(){ return !query("Log");}); +     defvar("NoLog", ({ }),    DLOCALE(32, "Logging: No Logging for"), TYPE_STRING_LIST|VAR_MORE,    DLOCALE(33, "Don't log requests from hosts with an IP number which "    "matches any of the patterns in this list. This also affects "    "the access counter log."),    0, lambda(){ return !query("Log");});       defvar("Domain", roxen.get_domain(), DLOCALE(34, "Domain"),    TYPE_STRING|VAR_PUBLIC|VAR_NO_DEFAULT,    DLOCALE(35, "The domain name of the server. The domain name is used "