forked from gwizard/gwizard-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproperties.yml
67 lines (57 loc) · 2.13 KB
/
properties.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# This configuration file is mapped to the ApplicationConfig class.
#
# We put the logback XML config in here as an example. You also have the option
# of using the standard logback bootstrap (ie, logback.xml on classpath) and
# then put logger level overrides in here. However, you'll need the XML here
# if you want to, say, use different appenders for staging vs production vs dev.
# Also, 'logggers' yaml overrides any logger configs in the XML.
#
foo: bar
shutdownPort: 10777
web:
port: 8081
initParameters:
"resteasy.role.based.security": true
"resteasy.providers": "com.example.app.resource.filter.AuthenticationFilter,com.example.app.resource.exception.ApplicationExceptionMapper"
database:
driverClass: com.mysql.jdbc.Driver
user: root
password: root
url: jdbc:mysql://127.0.0.1/example
properties:
hibernate.dialect: org.hibernate.dialect.MySQLDialect
hibernate.hbm2ddl.auto: validate
hibernate.c3p0.maxConnectionAge: 14400
hibernate.c3p0.maxIdleTime: 7200
hibernate.c3p0.idle_test_period: 400
hibernate.c3p0.preferredTestQuery: SELECT 1
hibernate.c3p0.testConnectionOnCheckin: true
logging:
loggers:
"com.example.app": TRACE
"com.voodoodyne.gwizard": DEBUG
xml: |
<configuration>
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d %5p %40.40c:%4L - %m%n</pattern>
</encoder>
</appender>
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>app.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>logs/app.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- keep 30 days' worth of history -->
<maxHistory>30</maxHistory>
</rollingPolicy>
<encoder>
<pattern>%d [%thread] %5p %logger{35} - %msg%n</pattern>
</encoder>
</appender>
<logger name="org.hibernate" level="info"/>
<root level="info">
<appender-ref ref="file" />
<appender-ref ref="console"/>
</root>
</configuration>