Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:4651: Inside #if defined(SNMP_AGENT)
   // Start trap after real virt.serv. loading    if(query("snmp_process") && objectp(roxen->snmpagent))    roxen->snmpagent->vs_start_trap(get_config_id());   #endif      }      DataCache datacache;      // Handle changes in js logger endpoints - void js_log_endpoint_cb(object v) { + void json_log_endpoint_cb(object v) {    if (!json_logger) return;       array new_endpoints = v->query();    array old_endpoints = json_logger->get_bound_ports();       multiset obsolete = (multiset)old_endpoints;       // Bind any new ports    foreach(new_endpoints, string ep) {    if (!ep || (ep == "")) continue;    ep = roxen_path(ep); -  +  string json_log_dir = combine_path(getcwd(), roxen.query_configuration_dir(), "_jsonlog"); +  if (!Stdio.exist(json_log_dir)) { +  mkdir(json_log_dir, 0700); +  } +  ep = replace(ep, "$JSONLOGDIR", json_log_dir); +     if (!obsolete[ep]) {    json_logger->bind(ep);    }    obsolete[ep] = 0;    }       foreach((array)obsolete, string ep) {    if (!ep || (ep == "")) continue;    json_logger->unbind(ep);    }
Roxen.git/server/base_server/configuration.pike:5140:    "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("JSLogEndpoints", ({ "$LOGDIR/" + Roxen.short_name(name) + ".jslog" }), -  DLOCALE(0, "Logging: JS Logging endpoints"), TYPE_STRING_LIST, -  DLOCALE(0, "Socket paths and/or IP:ports to bind for log output from this configuration")) -  ->add_changed_callback(js_log_endpoint_cb); +  defvar("JSONLogEndpoints", ({ "$JSONLOGDIR/" + Roxen.short_name(name) + ".jsonlog" }), +  DLOCALE(0, "Logging: JSON Logging endpoints"), TYPE_STRING_LIST, +  DLOCALE(0, "Socket paths and/or IP:ports to bind for log output from this configuration. " +  "$JSONLOGDIR will expand to <configuration directory>/_jsonlog where sockets should be reasonably secure.")) +  ->add_changed_callback(json_log_endpoint_cb);       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 "    "to generate default URLs, and to generate email addresses."));       defvar("MyWorldLocation", "",    DLOCALE(36, "Ports: Primary Server URL"), TYPE_URL|VAR_PUBLIC,    DLOCALE(37, #"\   This is the main server URL, where your start page is located. This