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.606 2006/04/20 11:49:19 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.607 2006/05/22 15:35:05 grubba 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:938:    string b;    array foo=query("LogFormat")/"\n";    foreach(foo, b)    if(strlen(b) && b[0] != '#' && sizeof(b/":")>1)    log_format[(int)(b/":")[0]] = fix_logging((b/":")[1..]*":");   }      void log(mapping file, RequestID request_id)   {    // Call all logging functions -  foreach(logger_module_cache||logger_modules(), function f) +  array(function) log_funs = logger_module_cache||logger_modules(); +  if (sizeof(log_funs)) { +  id->init_cookies(); +  foreach(log_funs, function f)    if( f( request_id, file ) )    return; -  +  }       if( !log_function )    return; // No file is open for logging.       if(do_not_log_patterns &&    Roxen._match(request_id->remoteaddr, do_not_log_patterns))    return;       string form;    if(!(form=log_format[file->error]))