Author: mickw
Date: 2006-04-24 14:48:13 +0200 (Mon, 24 Apr 2006)
New Revision: 2791

Added:
   trunk/src/main/
   trunk/src/main/conf/
   trunk/src/main/conf/log4j.dtd
   trunk/src/main/conf/log4j.xml
   trunk/src/main/conf/oscache.properties
Log:
SEARCH-518


Added: trunk/src/main/conf/log4j.dtd
===================================================================
--- trunk/src/main/conf/log4j.dtd                               (rev 0)
+++ trunk/src/main/conf/log4j.dtd       2006-04-24 12:48:13 UTC (rev 2791)
@@ -0,0 +1,166 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!-- Authors: Chris Taylor, Ceki Gulcu. -->
+
+<!-- Version: 1.2 -->
+
+<!-- A configuration element consists of optional renderer
+elements,appender elements, categories and an optional root
+element. -->
+
+<!ELEMENT log4j:configuration (renderer*, appender*,(category|logger)*,root?,
+                               categoryFactory?)>
+
+<!-- The "threshold" attribute takes a level value such that all -->
+<!-- logging statements with a level equal or below this value are -->
+<!-- disabled. -->
+
+<!-- Setting the "debug" enable the printing of internal log4j logging   -->
+<!-- statements.                                                         -->
+
+<!-- By default, debug attribute is "null", meaning that we not do touch -->
+<!-- internal log4j logging settings. The "null" value for the threshold -->
+<!-- attribute can be misleading. The threshold field of a repository   -->
+<!-- cannot be set to null. The "null" value for the threshold attribute -->
+<!-- simply means don't touch the threshold field, the threshold field   --> 
+<!-- keeps its old value.                                                -->
+     
+<!ATTLIST log4j:configuration
+  xmlns:log4j              CDATA #FIXED "http://jakarta.apache.org/log4j/"; 
+  threshold                (all|debug|info|warn|error|fatal|off|null) "null"
+  debug                    (true|false|null)  "null"
+>
+
+<!-- renderer elements allow the user to customize the conversion of  -->
+<!-- message objects to String.                                       -->
+
+<!ELEMENT renderer EMPTY>
+<!ATTLIST renderer
+  renderedClass  CDATA #REQUIRED
+  renderingClass CDATA #REQUIRED
+>
+
+<!-- Appenders must have a name and a class. -->
+<!-- Appenders may contain an error handler, a layout, optional parameters -->
+<!-- and filters. They may also reference (or include) other appenders. -->
+<!ELEMENT appender (errorHandler?, param*, layout?, filter*, appender-ref*)>
+<!ATTLIST appender
+  name                 ID      #REQUIRED
+  class        CDATA   #REQUIRED
+>
+
+<!ELEMENT layout (param*)>
+<!ATTLIST layout
+  class                CDATA   #REQUIRED
+>
+
+<!ELEMENT filter (param*)>
+<!ATTLIST filter
+  class                CDATA   #REQUIRED
+>
+
+<!-- ErrorHandlers can be of any class. They can admit any number of -->
+<!-- parameters. -->
+
+<!ELEMENT errorHandler (param*, root-ref?, logger-ref*,  appender-ref?)> 
+<!ATTLIST errorHandler
+   class        CDATA   #REQUIRED 
+>
+
+<!ELEMENT root-ref EMPTY>
+
+<!ELEMENT logger-ref EMPTY>
+<!ATTLIST logger-ref
+  ref IDREF #REQUIRED
+>
+
+<!ELEMENT param EMPTY>
+<!ATTLIST param
+  name         CDATA   #REQUIRED
+  value                CDATA   #REQUIRED
+>
+
+
+<!-- The priority class is org.apache.log4j.Level by default -->
+<!ELEMENT priority (param*)>
+<!ATTLIST priority
+  class   CDATA        #IMPLIED
+  value          CDATA #REQUIRED
+>
+
+<!-- The level class is org.apache.log4j.Level by default -->
+<!ELEMENT level (param*)>
+<!ATTLIST level
+  class   CDATA        #IMPLIED
+  value          CDATA #REQUIRED
+>
+
+
+<!-- If no level element is specified, then the configurator MUST not -->
+<!-- touch the level of the named category. -->
+<!ELEMENT category (param*,(priority|level)?,appender-ref*)>
+<!ATTLIST category
+  class         CDATA   #IMPLIED
+  name         CDATA   #REQUIRED
+  additivity   (true|false) "true"  
+>
+
+<!-- If no level element is specified, then the configurator MUST not -->
+<!-- touch the level of the named logger. -->
+<!ELEMENT logger (level?,appender-ref*)>
+<!ATTLIST logger
+  name         ID      #REQUIRED
+  additivity   (true|false) "true"  
+>
+
+
+<!ELEMENT categoryFactory (param*)>
+<!ATTLIST categoryFactory 
+   class        CDATA #REQUIRED>
+
+<!ELEMENT appender-ref EMPTY>
+<!ATTLIST appender-ref
+  ref IDREF #REQUIRED
+>
+
+<!-- If no priority element is specified, then the configurator MUST not -->
+<!-- touch the priority of root. -->
+<!-- The root category always exists and cannot be subclassed. -->
+<!ELEMENT root (param*, (priority|level)?, appender-ref*)>
+
+
+<!-- ==================================================================== -->
+<!--                       A logging event                                -->
+<!-- ==================================================================== -->
+<!ELEMENT log4j:eventSet (log4j:event*)>
+<!ATTLIST log4j:eventSet
+  xmlns:log4j             CDATA #FIXED "http://jakarta.apache.org/log4j/"; 
+  version                (1.1|1.2) "1.2" 
+  includesLocationInfo   (true|false) "true"
+>
+
+
+
+<!ELEMENT log4j:event (log4j:message, log4j:NDC?, log4j:throwable?, 
+                       log4j:locationInfo?) >
+
+<!-- The timestamp format is application dependent. -->
+<!ATTLIST log4j:event
+    logger     CDATA #REQUIRED
+    level      CDATA #REQUIRED
+    thread     CDATA #REQUIRED
+    timestamp  CDATA #REQUIRED
+>
+
+<!ELEMENT log4j:message (#PCDATA)>
+<!ELEMENT log4j:NDC (#PCDATA)>
+
+<!ELEMENT log4j:throwable (#PCDATA)>
+
+<!ELEMENT log4j:locationInfo EMPTY>
+<!ATTLIST log4j:locationInfo
+  class  CDATA #REQUIRED
+  method CDATA #REQUIRED
+  file   CDATA #REQUIRED
+  line   CDATA #REQUIRED
+>

Added: trunk/src/main/conf/log4j.xml
===================================================================
--- trunk/src/main/conf/log4j.xml                               (rev 0)
+++ trunk/src/main/conf/log4j.xml       2006-04-24 12:48:13 UTC (rev 2791)
@@ -0,0 +1,138 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+<!--
+Copyright (2006) Schibsted Søk AS
+$Id: log4j.xml 1403 2005-11-02 09:19:50Z larsar $
+-->
+<log4j:configuration
+    xmlns:log4j="http://jakarta.apache.org/log4j/";
+    threshold="all"
+    debug="false">
+
+    <appender name="LOG_APPEND" 
class="org.apache.log4j.DailyRollingFileAppender">
+        <param name="File" value="@log.directory@/@[EMAIL PROTECTED]"/>
+        <param name="DatePattern" value="'.'yyyy-MM-dd"/>
+        <param name="Append" value="true"/>
+        <param name="Threshold" value="ALL"/>
+        <param name="encoding" value="UTF-8"/>
+        <layout class="org.apache.log4j.PatternLayout">
+            <param name="ConversionPattern" value="%d{HH\:mm\:ss,SSS} [%t 
%X{site}] %-5p %c{1}\: %m%n"/>
+        </layout>
+    </appender>
+    
+    <appender name="ERROR_APPEND" 
class="org.apache.log4j.DailyRollingFileAppender">
+        <param name="File" value="@log.directory@/@[EMAIL PROTECTED]"/>
+        <param name="DatePattern" value="'.'yyyy-MM-dd"/>
+        <param name="Append" value="true"/>
+        <param name="Threshold" value="ERROR"/>
+        <param name="encoding" value="UTF-8"/>
+        <layout class="org.apache.log4j.PatternLayout">
+            <param name="ConversionPattern" value="%d{HH\:mm\:ss,SSS} [%t 
%X{site}] %-5p %c{1}\: %m%n"/>
+        </layout>
+    </appender>
+    
+    <appender name="DUMP_APPEND" 
class="org.apache.log4j.DailyRollingFileAppender">
+        <param name="File" value="@log.directory@/@[EMAIL PROTECTED]"/>
+        <param name="DatePattern" value="'.'yyyy-MM-dd"/>
+        <param name="Append" value="true"/>
+        <param name="Threshold" value="ALL"/>
+        <param name="encoding" value="UTF-8"/>
+        <layout class="org.apache.log4j.PatternLayout">
+            <param name="ConversionPattern" value="%d{HH\:mm\:ss,SSS} [%t 
%X{site}] %-5p %c{1}\: %m%n"/>
+        </layout>
+    </appender>
+    
+    <appender name="SALES_APPEND" 
class="org.apache.log4j.DailyRollingFileAppender">
+        <param name="File" value="@log.directory@/@[EMAIL PROTECTED]"/>
+        <param name="DatePattern" value="'.'yyyy-MM-dd"/>
+        <param name="Append" value="true"/>
+        <param name="Threshold" value="ALL"/>
+        <param name="encoding" value="UTF-8"/>
+        <layout class="org.apache.log4j.PatternLayout">
+            <param name="ConversionPattern" value="%d{HH\:mm\:ss,SSS} [%t 
%X{site}] %-5p %c{1}\: %m%n"/>
+        </layout>
+    </appender>
+    
+    <appender name="MARKETING_APPEND" 
class="org.apache.log4j.DailyRollingFileAppender">
+        <param name="File" value="@log.directory@/@[EMAIL PROTECTED]"/>
+        <param name="DatePattern" value="'.'yyyy-MM-dd"/>
+        <param name="Append" value="true"/>
+        <param name="Threshold" value="ALL"/>
+        <param name="encoding" value="UTF-8"/>
+        <layout class="org.apache.log4j.PatternLayout">
+            <param name="ConversionPattern" value="%d{HH\:mm\:ss,SSS} [%t 
%X{site}] %-5p %c{1}\: %m%n"/>
+        </layout>
+    </appender>
+    
+    <appender name="PRODUCT_APPEND" 
class="org.apache.log4j.DailyRollingFileAppender">
+        <param name="File" value="@log.directory@/@[EMAIL PROTECTED]"/>
+        <param name="DatePattern" value="'.'yyyy-MM-dd"/>
+        <param name="Append" value="true"/>
+        <param name="Threshold" value="ALL"/>
+        <param name="encoding" value="UTF-8"/>
+        <layout class="org.apache.log4j.PatternLayout">
+            <param name="ConversionPattern" value="%d{HH\:mm\:ss,SSS} [%t 
%X{site}] %-5p %c{1}\: %m%n"/>
+        </layout>
+    </appender>
+    
+    <appender name="STATISTICS_APPEND" 
class="org.apache.log4j.DailyRollingFileAppender">
+        <param name="File" value="@log.directory@/@[EMAIL PROTECTED]"/>
+        <param name="DatePattern" value="'.'yyyy-MM-dd"/>
+        <param name="Append" value="true"/>
+        <param name="Threshold" value="ALL"/>
+        <param name="encoding" value="UTF-8"/>
+        <layout class="org.apache.log4j.PatternLayout">
+            <param name="ConversionPattern" value="%d{HH\:mm\:ss,SSS} [%t 
%X{site}] %-5p %c{1}\: %m%n"/>
+        </layout>
+    </appender>
+    
+    <appender name="ANALYSIS_APPEND" 
class="org.apache.log4j.DailyRollingFileAppender">
+        <param name="File" value="@log.directory@/@[EMAIL PROTECTED]"/>
+        <param name="DatePattern" value="'.'yyyy-MM-dd"/>
+        <param name="Append" value="true"/>
+        <param name="Threshold" value="ALL"/>
+        <param name="encoding" value="UTF-8"/>
+        <layout class="org.apache.log4j.PatternLayout">
+            <param name="ConversionPattern" value="%d{HH\:mm\:ss,SSS} [%t 
%X{site}] %-5p %c{1}\: %m%n"/>
+        </layout>
+    </appender>
+    
+    <logger name="no.schibstedsok.Dump" additivity="false">
+        <level value="ALL"/>
+        <appender-ref ref="DUMP_APPEND"/>
+    </logger>
+    
+    <logger name="no.schibstedsok.Sales" additivity="false">
+        <level value="ALL"/>
+        <appender-ref ref="SALES_APPEND"/>
+    </logger>
+    
+    <logger name="no.schibstedsok.Marketing" additivity="false">
+        <level value="ALL"/>
+        <appender-ref ref="MARKETING_APPEND"/>
+    </logger>
+    
+    <logger name="no.schibstedsok.Statistics" additivity="false">
+        <level value="ALL"/>
+        <appender-ref ref="STATISTICS_APPEND"/>
+    </logger>
+    
+    <logger name="no.schibstedsok.front.searchportal.analyzer.Analysis" 
additivity="false">
+        <level value="ALL"/>
+        <appender-ref ref="ANALYSIS_APPEND"/>
+    </logger>
+    
+    <logger name="no.schibstedsok.Product" additivity="false">
+        <level value="ALL"/>
+        <appender-ref ref="PRODUCT_APPEND"/>
+    </logger>
+    
+    <!-- These are here to avoid their DEBUG messages flooding our logfiles -->
+    <logger name="httpclient"><level value="INFO"/></logger>
+    <logger name="org.apache"><level value="INFO"/></logger>
+    <root>
+        <level value="@log.level@"/>
+        <appender-ref ref="ERROR_APPEND"/>
+        <appender-ref ref="LOG_APPEND"/>
+    </root>
+</log4j:configuration>

Added: trunk/src/main/conf/oscache.properties
===================================================================
--- trunk/src/main/conf/oscache.properties                              (rev 0)
+++ trunk/src/main/conf/oscache.properties      2006-04-24 12:48:13 UTC (rev 
2791)
@@ -0,0 +1,138 @@
+# CACHE IN MEMORY
+#
+# If you want to disable memory caching, just uncomment this line.
+#
+# cache.memory=false
+
+
+# CACHE KEY
+#
+# This is the key that will be used to store the cache in the application
+# and session scope.
+#
+# If you want to set the cache key to anything other than the default
+# uncomment this line and change the cache.key
+#
+# cache.key=__oscache_cache
+
+
+# USE HOST DOMAIN NAME IN KEY
+#
+# Servers for multiple host domains may wish to add host name info to
+# the generation of the key.  If this is true, then uncomment the
+# following line.
+#
+# cache.use.host.domain.in.key=true
+
+
+# CACHE LISTENERS
+#
+# These hook OSCache events and perform various actions such as logging
+# cache hits and misses, or broadcasting to other cache instances across a 
cluster.
+# See the documentation for further information.
+#
+# 
cache.event.listeners=com.opensymphony.oscache.plugins.clustersupport.JMSBroadcastingListener,
  \
+#                       
com.opensymphony.oscache.extra.CacheEntryEventListenerImpl,               \
+#                       
com.opensymphony.oscache.extra.CacheMapAccessEventListenerImpl,           \
+#                       com.opensymphony.oscache.extra.ScopeEventListenerImpl
+
+
+# CACHE PERSISTENCE CLASS
+#
+# Specify the class to use for persistence. If you use the supplied 
DiskPersistenceListener,
+# don't forget to supply the cache.path property to specify the location of 
the cache
+# directory.
+# 
+# If a persistence class is not specified, OSCache will use memory caching 
only.
+#
+# 
cache.persistence.class=com.opensymphony.oscache.plugins.diskpersistence.DiskPersistenceListener
+
+# CACHE OVERFLOW PERSISTENCE
+# Use persistent cache in overflow or not. The default value is false, which 
means
+# the persistent cache will be used at all times for every entry.  true is the 
recommended setting.
+#
+# cache.persistence.overflow.only=true
+
+# CACHE DIRECTORY
+#
+# This is the directory on disk where caches will be stored by the 
DiskPersistenceListener.
+# it will be created if it doesn't already exist. Remember that OSCache must 
have
+# write permission to this directory.
+#
+# Note: for Windows machines, this needs \ to be escaped
+# ie Windows:
+# cache.path=c:\\myapp\\cache
+# or *ix:
+# cache.path=/opt/myapp/cache
+#
+# cache.path=c:\\app\\cache
+
+
+# CACHE ALGORITHM
+#
+# Default cache algorithm to use. Note that in order to use an algorithm
+# the cache size must also be specified. If the cache size is not specified,
+# the cache algorithm will be Unlimited cache.
+#
+# cache.algorithm=com.opensymphony.oscache.base.algorithm.LRUCache
+# cache.algorithm=com.opensymphony.oscache.base.algorithm.FIFOCache
+# cache.algorithm=com.opensymphony.oscache.base.algorithm.UnlimitedCache
+
+# THREAD BLOCKING BEHAVIOR
+#
+# When a request is made for a stale cache entry, it is possible that another 
thread is already
+# in the process of rebuilding that entry. This setting specifies how OSCache 
handles the
+# subsequent 'non-building' threads. The default behaviour 
(cache.blocking=false) is to serve
+# the old content to subsequent threads until the cache entry has been 
updated. This provides
+# the best performance (at the cost of serving slightly stale data). When 
blocking is enabled,
+# threads will instead block until the new cache entry is ready to be served. 
Once the new entry
+# is put in the cache the blocked threads will be restarted and given the new 
entry.
+# Note that even if blocking is disabled, when there is no stale data 
available to be served
+# threads will block until the data is added to the cache by the thread that 
is responsible
+# for building the data.
+#
+# cache.blocking=false
+
+# CACHE SIZE
+#
+# Default cache size in number of items. If a size is specified but not
+# an algorithm, the cache algorithm used will be LRUCache.
+#
+cache.capacity=1000
+
+
+# CACHE UNLIMITED DISK
+# Use unlimited disk cache or not. The default value is false, which means
+# the disk cache will be limited in size to the value specified by 
cache.capacity.
+#
+# cache.unlimited.disk=false
+
+
+# JMS CLUSTER PROPERTIES
+#
+# Configuration properties for JMS clustering. See the clustering documentation
+# for more information on these settings.
+#
+#cache.cluster.jms.topic.factory=java:comp/env/jms/TopicConnectionFactory
+#cache.cluster.jms.topic.name=java:comp/env/jms/OSCacheTopic
+#cache.cluster.jms.node.name=node1
+
+
+# JAVAGROUPS CLUSTER PROPERTIES
+#
+# Configuration properites for the JavaGroups clustering. Only one of these
+# should be specified. Default values (as shown below) will be used if niether
+# property is set. See the clustering documentation and the JavaGroups project
+# (www.javagroups.com) for more information on these settings.
+#
+#cache.cluster.properties=UDP(mcast_addr=231.12.21.132;mcast_port=45566;ip_ttl=32;\
+#mcast_send_buf_size=150000;mcast_recv_buf_size=80000):\
+#PING(timeout=2000;num_initial_members=3):\
+#MERGE2(min_interval=5000;max_interval=10000):\
+#FD_SOCK:VERIFY_SUSPECT(timeout=1500):\
+#pbcast.NAKACK(gc_lag=50;retransmit_timeout=300,600,1200,2400,4800;max_xmit_size=8192):\
+#UNICAST(timeout=300,600,1200,2400):\
+#pbcast.STABLE(desired_avg_gossip=20000):\
+#FRAG(frag_size=8096;down_thread=false;up_thread=false):\
+#pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=false;print_local_addr=true)
+#cache.cluster.multicast.ip=231.12.21.132

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to