Skip to content

Commit

Permalink
#156 create new .war module without GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
etj committed Oct 21, 2020
1 parent e515778 commit 28cc88c
Show file tree
Hide file tree
Showing 15 changed files with 1,380 additions and 55 deletions.
2 changes: 1 addition & 1 deletion src/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@

<modules>
<module>services</module>
<!-- <module>gui</module> -->
<module>web</module>
</modules>

<build>
Expand Down
83 changes: 30 additions & 53 deletions src/services/core/webtest/src/main/resources/log4j.xml
Original file line number Diff line number Diff line change
@@ -1,53 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/* (c) 2014 Open Source Geospatial Foundation - all rights reserved
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/
-->

<configuration>

<properties>
<property name="geofence_logpath">logs/</property>
</properties>

<appenders>
<Console name="STDOUT" target="SYSTEM_OUT">
<PatternLayout pattern="%d{ABSOLUTE} %5p %c{1}:%L - %m%n"/>
</Console>

<!-- <RollingFile name="R"
fileName="${sys:geofence_logpath}/geofence.log"
filePattern="${sys:geofence_logpath}/$${date:yyyy-MM}/geofence-%d{MM-dd-yyyy}-%i.log.gz">
<PatternLayout>
<pattern>%d{ABSOLUTE} %5p %c{1}:%L - %m%n</pattern>
</PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy />
<SizeBasedTriggeringPolicy size="10MB"/>
</Policies>
<DefaultRolloverStrategy max="10"/>
</RollingFile> -->
</appenders>

<!--
<logger name="org.hibernate">
<level value="debug"/>
<appender-ref ref="R"/>
</logger>
-->

<loggers>
<logger name="org.geoserver.geofence" level="debug">
<!--<appender-ref ref="R"/>-->
</logger>

<root level="info">
<appender-ref ref="STDOUT" />
<!--<appender-ref ref="R" />-->
</root>
</loggers>
</configuration>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

<appender name="stdout" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ABSOLUTE} %5p %c{1}:%L - %m%n" />
</layout>
</appender>

<appender name="R" class="org.apache.log4j.RollingFileAppender">
<param name="file" value="${java.io.tmpdir}/geofence.log"/>
<param name="MaxFileSize" value="10MB"/>
<param name="MaxBackupIndex" value="1"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ABSOLUTE} %5p %c{1}:%L - %m%n" />
</layout>
</appender>

<logger name="org.geoserver.geofence">
<level value="debug"/>
</logger>

<root>
<priority value ="info" />
<appender-ref ref="stdout" />
<!-- <appender-ref ref="R" /> -->
</root>

</log4j:configuration>
2 changes: 1 addition & 1 deletion src/services/core/webtest/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<!-- spring context loader -->
<listener>
<listener-class>org.apache.logging.log4j.web.Log4jServletContextListener</listener-class>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>

<listener>
Expand Down
Loading

0 comments on commit 28cc88c

Please sign in to comment.