mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
apply fix to windows env and remove duplicate logging for checksum checker
This commit is contained in:
@@ -38,6 +38,9 @@ REM If JAVA_OPTS specified, use those options
|
|||||||
REM Otherwise, default Java to using 256MB of memory
|
REM Otherwise, default Java to using 256MB of memory
|
||||||
if "%JAVA_OPTS%"=="" set "JAVA_OPTS=-Xmx256m -Dfile.encoding=UTF-8"
|
if "%JAVA_OPTS%"=="" set "JAVA_OPTS=-Xmx256m -Dfile.encoding=UTF-8"
|
||||||
|
|
||||||
|
REM Add log4j2 configuration to JAVA_OPTS
|
||||||
|
set "JAVA_OPTS=%JAVA_OPTS% -Dlog4j2.configurationFile=%cd%\config\log4j2-cli.xml"
|
||||||
|
|
||||||
REM Execute Java
|
REM Execute Java
|
||||||
java %JAVA_OPTS% -classpath "%DSPACE_CLASSPATH%" org.dspace.app.launcher.ScriptLauncher %*
|
java %JAVA_OPTS% -classpath "%DSPACE_CLASSPATH%" org.dspace.app.launcher.ScriptLauncher %*
|
||||||
|
|
||||||
|
@@ -44,26 +44,6 @@
|
|||||||
</DefaultRolloverStrategy>
|
</DefaultRolloverStrategy>
|
||||||
-->
|
-->
|
||||||
</Appender>
|
</Appender>
|
||||||
|
|
||||||
<!-- A2 is for the checksum checker -->
|
|
||||||
<Appender name='A2'
|
|
||||||
filePattern="${log.dir}/checker.log-%d{yyyy-MM-dd}"
|
|
||||||
type='RollingFile'
|
|
||||||
fileName='${log.dir}/checker.log'>
|
|
||||||
<Layout type='PatternLayout'
|
|
||||||
pattern='%m%n'/>
|
|
||||||
<policies>
|
|
||||||
<policy type='TimeBasedTriggeringPolicy'>yyyy-MM-dd</policy>
|
|
||||||
</policies>
|
|
||||||
<!-- Sample deletion policy: keep last 30 archived files
|
|
||||||
<DefaultRolloverStrategy>
|
|
||||||
<Delete basePath='${log.dir}'>
|
|
||||||
<IfFileName glob='checker.log-*'/>
|
|
||||||
<IfAccumulatedFileCount exceeds='30'/>
|
|
||||||
</Delete>
|
|
||||||
</DefaultRolloverStrategy>
|
|
||||||
-->
|
|
||||||
</Appender>
|
|
||||||
</Appenders>
|
</Appenders>
|
||||||
|
|
||||||
<Loggers>
|
<Loggers>
|
||||||
@@ -75,13 +55,6 @@
|
|||||||
<AppenderRef ref='A1'/>
|
<AppenderRef ref='A1'/>
|
||||||
</Logger>
|
</Logger>
|
||||||
|
|
||||||
<!-- The checksum checker -->
|
|
||||||
<Logger name='org.dspace.checker'
|
|
||||||
level='INFO'
|
|
||||||
additivity='false'>
|
|
||||||
<AppenderRef ref='A2'/>
|
|
||||||
</Logger>
|
|
||||||
|
|
||||||
<!-- Block services logging except on exceptions -->
|
<!-- Block services logging except on exceptions -->
|
||||||
<Logger name='org.dspace.kernel'
|
<Logger name='org.dspace.kernel'
|
||||||
level='ERROR'/>
|
level='ERROR'/>
|
||||||
|
Reference in New Issue
Block a user