forked from eugenp/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
145 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
cas/cas-server/src/main/resources/etc/cas/config/application.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
info: | ||
description: CAS Configuration |
7 changes: 7 additions & 0 deletions
7
cas/cas-server/src/main/resources/etc/cas/config/cas.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
cas.server.name: https://cas.example.org:8443 | ||
cas.server.prefix: https://cas.example.org:8443/cas | ||
|
||
cas.adminPagesSecurity.ip=127\.0\.0\.1 | ||
|
||
logging.config: file:/etc/cas/config/log4j2.xml | ||
# cas.serviceRegistry.config.location: classpath:/services |
117 changes: 117 additions & 0 deletions
117
cas/cas-server/src/main/resources/etc/cas/config/log4j2.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- Specify the refresh internal in seconds. --> | ||
<Configuration monitorInterval="5" packages="org.apereo.cas.logging"> | ||
<Properties> | ||
<!-- | ||
Default log directory is the current directory but that can be overridden with -Dcas.log.dir=<logdir> | ||
Or you can change this property to a new default | ||
--> | ||
<Property name="cas.log.dir" >.</Property> | ||
<!-- To see more CAS specific logging, adjust this property to info or debug or run server with -Dcas.log.leve=debug --> | ||
<Property name="cas.log.level" >warn</Property> | ||
</Properties> | ||
<Appenders> | ||
<Console name="console" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="%d %p [%c] - <%m>%n"/> | ||
</Console> | ||
<RollingFile name="file" fileName="${sys:cas.log.dir}/cas.log" append="true" | ||
filePattern="${sys:cas.log.dir}/cas-%d{yyyy-MM-dd-HH}-%i.log"> | ||
<PatternLayout pattern="%d %p [%c] - <%m>%n"/> | ||
<Policies> | ||
<OnStartupTriggeringPolicy /> | ||
<SizeBasedTriggeringPolicy size="10 MB"/> | ||
<TimeBasedTriggeringPolicy /> | ||
</Policies> | ||
</RollingFile> | ||
<RollingFile name="auditlogfile" fileName="${sys:cas.log.dir}/cas_audit.log" append="true" | ||
filePattern="${sys:cas.log.dir}/cas_audit-%d{yyyy-MM-dd-HH}-%i.log"> | ||
<PatternLayout pattern="%d %p [%c] - %m%n"/> | ||
<Policies> | ||
<OnStartupTriggeringPolicy /> | ||
<SizeBasedTriggeringPolicy size="10 MB"/> | ||
<TimeBasedTriggeringPolicy /> | ||
</Policies> | ||
</RollingFile> | ||
|
||
<RollingFile name="perfFileAppender" fileName="${sys:cas.log.dir}/perfStats.log" append="true" | ||
filePattern="${sys:cas.log.dir}/perfStats-%d{yyyy-MM-dd-HH}-%i.log"> | ||
<PatternLayout pattern="%m%n"/> | ||
<Policies> | ||
<OnStartupTriggeringPolicy /> | ||
<SizeBasedTriggeringPolicy size="10 MB"/> | ||
<TimeBasedTriggeringPolicy /> | ||
</Policies> | ||
</RollingFile> | ||
|
||
<CasAppender name="casAudit"> | ||
<AppenderRef ref="auditlogfile" /> | ||
</CasAppender> | ||
<CasAppender name="casFile"> | ||
<AppenderRef ref="file" /> | ||
</CasAppender> | ||
<CasAppender name="casConsole"> | ||
<AppenderRef ref="console" /> | ||
</CasAppender> | ||
<CasAppender name="casPerf"> | ||
<AppenderRef ref="perfFileAppender" /> | ||
</CasAppender> | ||
</Appenders> | ||
<Loggers> | ||
<!-- If adding a Logger with level set higher than warn, make category as selective as possible --> | ||
<!-- Loggers inherit appenders from Root Logger unless additivity is false --> | ||
<AsyncLogger name="org.apereo" level="${sys:cas.log.level}" includeLocation="true"/> | ||
<AsyncLogger name="org.apereo.services.persondir" level="${sys:cas.log.level}" includeLocation="true"/> | ||
<AsyncLogger name="org.apereo.cas.web.flow" level="info" includeLocation="true"/> | ||
<AsyncLogger name="org.apache" level="warn" /> | ||
<AsyncLogger name="org.apache.http" level="error" /> | ||
<AsyncLogger name="org.springframework" level="warn" /> | ||
<AsyncLogger name="org.springframework.cloud.server" level="warn" /> | ||
<AsyncLogger name="org.springframework.cloud.client" level="warn" /> | ||
<AsyncLogger name="org.springframework.cloud.bus" level="warn" /> | ||
<AsyncLogger name="org.springframework.aop" level="warn" /> | ||
<AsyncLogger name="org.springframework.boot" level="warn" /> | ||
<AsyncLogger name="org.springframework.boot.actuate.autoconfigure" level="warn" /> | ||
<AsyncLogger name="org.springframework.webflow" level="warn" /> | ||
<AsyncLogger name="org.springframework.session" level="warn" /> | ||
<AsyncLogger name="org.springframework.amqp" level="error" /> | ||
<AsyncLogger name="org.springframework.integration" level="warn" /> | ||
<AsyncLogger name="org.springframework.messaging" level="warn" /> | ||
<AsyncLogger name="org.springframework.web" level="warn" /> | ||
<AsyncLogger name="org.springframework.orm.jpa" level="warn" /> | ||
<AsyncLogger name="org.springframework.scheduling" level="warn" /> | ||
<AsyncLogger name="org.springframework.context.annotation" level="error" /> | ||
<AsyncLogger name="org.springframework.boot.devtools" level="error" /> | ||
<AsyncLogger name="org.springframework.web.socket" level="warn" /> | ||
<AsyncLogger name="org.thymeleaf" level="warn" /> | ||
<AsyncLogger name="org.pac4j" level="warn" /> | ||
<AsyncLogger name="org.opensaml" level="warn"/> | ||
<AsyncLogger name="net.sf.ehcache" level="warn" /> | ||
<AsyncLogger name="com.couchbase" level="warn" includeLocation="true"/> | ||
<AsyncLogger name="com.ryantenney.metrics" level="warn" /> | ||
<AsyncLogger name="net.jradius" level="warn" /> | ||
<AsyncLogger name="org.openid4java" level="warn" /> | ||
<AsyncLogger name="org.ldaptive" level="warn" /> | ||
<AsyncLogger name="com.hazelcast" level="warn" /> | ||
<AsyncLogger name="org.jasig.spring" level="warn" /> | ||
|
||
<!-- Log perf stats only to perfStats.log --> | ||
<AsyncLogger name="perfStatsLogger" level="info" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="casPerf"/> | ||
</AsyncLogger> | ||
|
||
<!-- Log audit to all root appenders, and also to audit log (additivity is not false) --> | ||
<AsyncLogger name="org.apereo.inspektr.audit.support" level="info" includeLocation="true" > | ||
<AppenderRef ref="casAudit"/> | ||
</AsyncLogger> | ||
|
||
<!-- All Loggers inherit appenders specified here, unless additivity="false" on the Logger --> | ||
<AsyncRoot level="warn"> | ||
<AppenderRef ref="casFile"/> | ||
<!-- | ||
For deployment to an application server running as service, | ||
delete the casConsole appender below | ||
--> | ||
<AppenderRef ref="casConsole"/> | ||
</AsyncRoot> | ||
</Loggers> | ||
</Configuration> |
Binary file not shown.
Binary file not shown.