mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 02:24:18 +00:00
Filter all log4j files via Ant. Move log.dir and other logging settings to log4j.properties, and similar.
This commit is contained in:
@@ -7,11 +7,6 @@
|
|||||||
# * JSPUI Specific Configurations
|
# * JSPUI Specific Configurations
|
||||||
# * XMLUI Specific Configurations
|
# * XMLUI Specific Configurations
|
||||||
#
|
#
|
||||||
# Revision: $Revision$
|
|
||||||
#
|
|
||||||
# Date: $Date$
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------#
|
#------------------------------------------------------------------#
|
||||||
#------------------GENERAL CONFIGURATIONS--------------------------#
|
#------------------GENERAL CONFIGURATIONS--------------------------#
|
||||||
@@ -166,27 +161,12 @@ mail.allowed.referrers = ${dspace.hostname}
|
|||||||
# Moved to config/spring/bitstore.xml
|
# Moved to config/spring/bitstore.xml
|
||||||
|
|
||||||
##### Logging configuration #####
|
##### Logging configuration #####
|
||||||
|
# Override default log4j configuration file
|
||||||
# Override default log4j configuration
|
|
||||||
# You may provide your own configuration here, existing alternatives are:
|
# You may provide your own configuration here, existing alternatives are:
|
||||||
# log.init.config = ${dspace.dir}/config/log4j.xml
|
|
||||||
# log.init.config = ${dspace.dir}/config/log4j-console.properties
|
# log.init.config = ${dspace.dir}/config/log4j-console.properties
|
||||||
log.init.config = ${dspace.dir}/config/log4j.properties
|
log.init.config = ${dspace.dir}/config/log4j.properties
|
||||||
|
|
||||||
# Where to put the logs (used in configuration only)
|
# All other log4j settings moved to config/log4j.properties
|
||||||
log.dir = ${dspace.dir}/log
|
|
||||||
|
|
||||||
# loglevel.dspace: Log level for all DSpace-specific code (org.dspace.*)
|
|
||||||
# Possible values (from most to least info): DEBUG, INFO, WARN, ERROR, FATAL
|
|
||||||
loglevel.dspace = INFO
|
|
||||||
|
|
||||||
# loglevel.other: Log level for other third-party tools/APIs used by DSpace
|
|
||||||
# Possible values (from most to least info): DEBUG, INFO, WARN, ERROR, FATAL
|
|
||||||
loglevel.other = INFO
|
|
||||||
|
|
||||||
# If enabled, the logging and the Solr statistics system will look for
|
|
||||||
# an X-Forwarded-For header. If it finds it, it will use this for the user IP address
|
|
||||||
#useProxies = true
|
|
||||||
|
|
||||||
##### DOI registration agency credentials ######
|
##### DOI registration agency credentials ######
|
||||||
# To mint DOIs you have to use a DOI registration agency like DataCite. Several
|
# To mint DOIs you have to use a DOI registration agency like DataCite. Several
|
||||||
@@ -344,6 +324,9 @@ http.proxy.host =
|
|||||||
# port number of proxy server
|
# port number of proxy server
|
||||||
http.proxy.port =
|
http.proxy.port =
|
||||||
|
|
||||||
|
# If enabled, the logging and the Solr statistics system will look for
|
||||||
|
# an X-Forwarded-For header. If it finds it, it will use this for the user IP address
|
||||||
|
#useProxies = true
|
||||||
|
|
||||||
#### Media Filter / Format Filter plugins (through PluginService) ####
|
#### Media Filter / Format Filter plugins (through PluginService) ####
|
||||||
# Media/Format Filters help to full-text index content or
|
# Media/Format Filters help to full-text index content or
|
||||||
|
@@ -1,6 +1,10 @@
|
|||||||
##########################################################
|
#############################################################
|
||||||
# Simple log4j configuration file used during build tasks
|
# log4j-console.properties
|
||||||
##########################################################
|
#
|
||||||
|
# Simple log4j configuration file used during Ant build tasks
|
||||||
|
#
|
||||||
|
# Its goal is to simply output logs to the commandline / console.
|
||||||
|
#############################################################
|
||||||
|
|
||||||
# Set root category priority to INFO and its only appender to A1.
|
# Set root category priority to INFO and its only appender to A1.
|
||||||
log4j.rootCategory=INFO, A1
|
log4j.rootCategory=INFO, A1
|
||||||
|
@@ -1,63 +1,20 @@
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
# REMEMBER: ONLY UPDATE THE VERSION IN dspace/config/templates
|
|
||||||
# AND THEN RUN dspace/bin/install-configs!
|
|
||||||
# DO NOT EDIT THE 'LIVE' VERSION!
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
#
|
|
||||||
# log4j-handle-plugin.properties
|
# log4j-handle-plugin.properties
|
||||||
#
|
#
|
||||||
# Version: $Revision$
|
# This is the log4j configuration file for the embedded DSpace Handle server,
|
||||||
#
|
# writing daily rolling logs. We cannot simply write to the same logs, since
|
||||||
# Date: $Date$
|
# log4j does not support more than one JVM writing to the same rolling log.
|
||||||
#
|
|
||||||
# Copyright (c) 2002-2009, The DSpace Foundation. All rights reserved.
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions are
|
|
||||||
# met:
|
|
||||||
#
|
|
||||||
# - Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
#
|
|
||||||
# - Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in the
|
|
||||||
# documentation and/or other materials provided with the distribution.
|
|
||||||
#
|
|
||||||
# - Neither the name of the DSpace Foundation nor the names of its
|
|
||||||
# contributors may be used to endorse or promote products derived from
|
|
||||||
# this software without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
# HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
||||||
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
|
||||||
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
|
||||||
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
|
||||||
# DAMAGE.
|
|
||||||
#
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
# This is the log4j configuration file for the DSpace Handle server, writing
|
# VARIABLES:
|
||||||
# daily rolling logs. We cannot simply write to the same logs, since log4j
|
# The following variables can be used to easily tweak the default log4j settings.
|
||||||
# does not support more than one JVM writing to the same rolling log.
|
# These variables are used by the log4j config / appenders later in this file.
|
||||||
|
|
||||||
# Text surrounded by two '@' symbols is replaced with the corresponding
|
|
||||||
# property from dspace.cfg. For example:
|
|
||||||
#
|
|
||||||
# @@dspace.url@@
|
|
||||||
#
|
|
||||||
# would be replaced with the dspace.url property in dspace.cfg.
|
|
||||||
# When /dspace/bin/install-configs is run, this file will be installed in the
|
|
||||||
# location specified by the property:
|
|
||||||
# config.template.log4j-handle-plugin.properties
|
|
||||||
|
|
||||||
|
# log.dir
|
||||||
|
# Default log file directory for DSpace. Defaults to the 'log' subdirectory
|
||||||
|
# under [dspace.dir]. NOTE: The value of 'dspace.dir' will be replaced by
|
||||||
|
# its value in your configuration when DSpace is deployed (via Ant).
|
||||||
|
log.dir=${dspace.dir}/log
|
||||||
|
|
||||||
# Set root category priority to INFO and its only appender to A1.
|
# Set root category priority to INFO and its only appender to A1.
|
||||||
log4j.rootCategory=INFO, A1
|
log4j.rootCategory=INFO, A1
|
||||||
|
@@ -1,13 +1,23 @@
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
# log4j-solr.properties
|
# log4j-solr.properties
|
||||||
###########################################################################
|
#
|
||||||
|
|
||||||
# This is the log4j configuration file for the Solr webapp that comes bundled
|
# This is the log4j configuration file for the Solr webapp that comes bundled
|
||||||
# with DSpace. Because Solr is a dependency, its log4j settings are kept separate
|
# with DSpace. Because Solr is a dependency, its log4j settings are kept
|
||||||
# from the default DSpace log4j settings (in log4j.properties).
|
# separate from the default DSpace log4j settings (in log4j.properties).
|
||||||
#
|
#
|
||||||
# Therefore, this log4j file is standalone. If you wish to tweak the location of
|
# Therefore, this log4j file is standalone. If you wish to tweak the location of
|
||||||
# your Solr logs, you must do so within this file (or in your DSpace source code).
|
# your Solr logs, you must do so within this file.
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
# VARIABLES:
|
||||||
|
# The following variables can be used to easily tweak the default log4j settings.
|
||||||
|
# These variables are used by the log4j config / appenders later in this file.
|
||||||
|
|
||||||
|
# log.dir
|
||||||
|
# Default log file directory for DSpace. Defaults to the 'log' subdirectory
|
||||||
|
# under [dspace.dir]. NOTE: The value of 'dspace.dir' will be replaced by
|
||||||
|
# its value in your configuration when DSpace is deployed (via Ant).
|
||||||
|
log.dir=${dspace.dir}/log
|
||||||
|
|
||||||
# Logging level for Solr
|
# Logging level for Solr
|
||||||
log4j.rootLogger=INFO, file
|
log4j.rootLogger=INFO, file
|
||||||
|
@@ -1,46 +1,33 @@
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
#
|
|
||||||
# log4j.properties
|
# log4j.properties
|
||||||
#
|
#
|
||||||
# Version: $Revision$
|
# This is the primary log4j (logging) configuration file for DSpace. By default,
|
||||||
#
|
# Log4j is configured to write log files that rotate daily. However, you may
|
||||||
# Date: $Date$
|
# tweak these settings based on your local needs / best practices.
|
||||||
#
|
# For more information on log4j configuration, see:
|
||||||
|
# https://logging.apache.org/log4j/1.2/manual.html
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
# This is the log4j configuration file for DSpace. Log4j can be configured to
|
# VARIABLES:
|
||||||
# write files that rotate every day or every month.
|
# The following variables can be used to easily tweak the default log4j settings.
|
||||||
#
|
# These variables are used by the log4j config / appenders later in this file.
|
||||||
# Some specific variables/properties are specified in the log4j settings below.
|
|
||||||
# These properties are given default values in this log4j configuration file,
|
|
||||||
# HOWEVER they will be overridden by a property of the same name within your
|
|
||||||
# DSpace Configuration. For example, the default value of ${log.dir} will be
|
|
||||||
# overridden by the "log.dir" setting within dspace.cfg or local.cfg.
|
|
||||||
#
|
|
||||||
# The default settings below MUST be retained here as they will be used by the
|
|
||||||
# DSpaceKernel during startup until the point where log4j is fully configured
|
|
||||||
# by LoggerServiceImpl. Once LoggerServiceImpl is initialized (after Kernel
|
|
||||||
# startup & configuration init), these values will be overridden by ones in
|
|
||||||
# the DSpaceConfigurationService.
|
|
||||||
# For more information, see LoggerServiceImpl class.
|
|
||||||
#
|
|
||||||
# PARAMETERS:
|
|
||||||
# [WARNING:] Please be sure to retain the uncommented, default values here.
|
|
||||||
# If you wish to update a value, do so within your local.cfg file, and it will
|
|
||||||
# automatically override the default setting below.
|
|
||||||
#
|
|
||||||
# log.dir
|
# log.dir
|
||||||
# Default log file directory for DSpace. Often set to ${dspace.dir}/log in dspace.cfg
|
# Default log file directory for DSpace. Defaults to the 'log' subdirectory
|
||||||
log.dir=../log
|
# under [dspace.dir]. NOTE: The value of 'dspace.dir' will be replaced by
|
||||||
#
|
# its value in your configuration when DSpace is deployed (via Ant).
|
||||||
|
log.dir=${dspace.dir}/log
|
||||||
|
|
||||||
# loglevel.dspace
|
# loglevel.dspace
|
||||||
# Log level for all DSpace-specific code (org.dspace.*)
|
# Log level for all DSpace-specific code (org.dspace.*)
|
||||||
# Possible values (from most to least info): DEBUG, INFO, WARN, ERROR, FATAL
|
# Possible values (from most to least info): DEBUG, INFO, WARN, ERROR, FATAL
|
||||||
|
# Defaults to INFO
|
||||||
loglevel.dspace=INFO
|
loglevel.dspace=INFO
|
||||||
#
|
|
||||||
# loglevel.other
|
# loglevel.other
|
||||||
# Log level for other third-party tools/APIs used by DSpace
|
# Log level for other third-party tools/APIs used by DSpace
|
||||||
# Possible values (from most to least info): DEBUG, INFO, WARN, ERROR, FATAL
|
# Possible values (from most to least info): DEBUG, INFO, WARN, ERROR, FATAL
|
||||||
|
# Defaults to INFO
|
||||||
loglevel.other=INFO
|
loglevel.other=INFO
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
@@ -69,7 +56,7 @@ log4j.appender.A1.layout.ConversionPattern=%d %-5p %c @ %m%n
|
|||||||
|
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# A2 is the name of the appender for the Checker
|
# A2 is the name of the appender for the Checksum Checker
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# This line sets the logging level for the checksum checker log file.
|
# This line sets the logging level for the checksum checker log file.
|
||||||
# Set this to DEBUG to see extra detailed logging.
|
# Set this to DEBUG to see extra detailed logging.
|
||||||
|
@@ -350,13 +350,13 @@ Common usage:
|
|||||||
<!-- Finally, filter some very specific configuration files, which cannot
|
<!-- Finally, filter some very specific configuration files, which cannot
|
||||||
be managed by DSpace's configuration service. NOTE: please refrain
|
be managed by DSpace's configuration service. NOTE: please refrain
|
||||||
from appending files to this list unless ABSOLUTELY NECESSARY.
|
from appending files to this list unless ABSOLUTELY NECESSARY.
|
||||||
Most config files are now auto-interpolated and don't need filtering! -->
|
MOST config files are now auto-interpolated at runtime and don't need filtering! -->
|
||||||
<copy todir="config-temp" preservelastmodified="true" overwrite="true" failonerror="false">
|
<copy todir="config-temp" preservelastmodified="true" overwrite="true" failonerror="false">
|
||||||
<fileset dir="config">
|
<fileset dir="config">
|
||||||
<!-- Filter extra (third-party) log4j files, as log4j requires absolute paths
|
<!-- Filter all log4j files, as log4j requires absolute paths
|
||||||
to its log files. This does NOT include the default log4j.properties file
|
to its log files. In addition, log4j strongly prefers
|
||||||
as its absolute paths are interpolated by DSpace's ConfigurationService. -->
|
autoconfiguring itself (e.g. see DS-3104). -->
|
||||||
<include name="log4j-*.properties"/>
|
<include name="log4j*.properties"/>
|
||||||
<!-- Filter OAI-PMH description so it can include hostname and handle prefix -->
|
<!-- Filter OAI-PMH description so it can include hostname and handle prefix -->
|
||||||
<include name="crosswalks/oai/description.xml"/>
|
<include name="crosswalks/oai/description.xml"/>
|
||||||
<!-- Filter sample Tomcat context.xml -->
|
<!-- Filter sample Tomcat context.xml -->
|
||||||
@@ -767,10 +767,7 @@ Common usage:
|
|||||||
<!-- Fresh install of config files -->
|
<!-- Fresh install of config files -->
|
||||||
<!-- ============================================================= -->
|
<!-- ============================================================= -->
|
||||||
|
|
||||||
<!-- Writes the configuration files to ${dspace.dir}/config. It does *not*
|
<!-- Copies the configuration files to ${dspace.dir}/config. -->
|
||||||
run the install-configs script. The "log4j.build.properties" file is
|
|
||||||
copied to ${dspace.dir}/config so there's a simple log4j.properties
|
|
||||||
file present for the initial run of "install-configs". -->
|
|
||||||
<target name="init_configs" depends="init_installation">
|
<target name="init_configs" depends="init_installation">
|
||||||
|
|
||||||
<copy todir="${dspace.dir}/config" preservelastmodified="true" failonerror="false">
|
<copy todir="${dspace.dir}/config" preservelastmodified="true" failonerror="false">
|
||||||
@@ -781,7 +778,6 @@ Common usage:
|
|||||||
|
|
||||||
<echo file='${dspace.dir}/config/ant.properties' message='ant.version = ${ant.version}'/>
|
<echo file='${dspace.dir}/config/ant.properties' message='ant.version = ${ant.version}'/>
|
||||||
|
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- ============================================================= -->
|
<!-- ============================================================= -->
|
||||||
|
Reference in New Issue
Block a user