Update dropwizard version.
Get basic logging config working.
This commit is contained in:
22
pom.xml
22
pom.xml
@@ -1,4 +1,5 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
@@ -16,7 +17,7 @@
|
||||
<computedVersion>${project.version}-${timestamp}-${buildNumber}</computedVersion>
|
||||
<computedName>${project.artifactId}-${computedVersion}</computedName>
|
||||
<mon.common.version>1.0.0.23</mon.common.version>
|
||||
<dropwizard.version>0.7.0-rc2</dropwizard.version>
|
||||
<dropwizard.version>0.7.0-rc3</dropwizard.version>
|
||||
|
||||
<skipITs>true</skipITs>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
@@ -104,6 +105,11 @@
|
||||
<artifactId>dropwizard-client</artifactId>
|
||||
<version>${dropwizard.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.dropwizard</groupId>
|
||||
<artifactId>dropwizard-jersey</artifactId>
|
||||
<version>${dropwizard.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.vertica</groupId>
|
||||
<artifactId>vertica-jdbc</artifactId>
|
||||
@@ -224,7 +230,8 @@
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<excludedGroups>performance,functional,integration,database,slow</excludedGroups>
|
||||
<excludedGroups>performance,functional,integration,database,slow
|
||||
</excludedGroups>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
@@ -273,8 +280,10 @@
|
||||
</goals>
|
||||
<configuration>
|
||||
<transformers>
|
||||
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
|
||||
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||||
<transformer
|
||||
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
|
||||
<transformer
|
||||
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||||
<mainClass>com.hpcloud.mon.MonApiApplication</mainClass>
|
||||
</transformer>
|
||||
</transformers>
|
||||
@@ -320,7 +329,8 @@
|
||||
</data>
|
||||
<data>
|
||||
<type>file</type>
|
||||
<src>${project.basedir}/src/deb/etc/mon-api-config.yml-sample</src>
|
||||
<src>${project.basedir}/src/deb/etc/mon-api-config.yml-sample
|
||||
</src>
|
||||
<dst>/etc/mon/mon-api-config.yml-sample</dst>
|
||||
</data>
|
||||
</dataSet>
|
||||
|
||||
@@ -16,9 +16,10 @@ kafka:
|
||||
|
||||
mysql:
|
||||
driverClass: com.mysql.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3306/mon?connectTimeout=5000&autoReconnect=true
|
||||
user: root
|
||||
password:
|
||||
#url: jdbc:mysql://localhost:3306/mon?connectTimeout=5000&autoReconnect=true
|
||||
url: jdbc:mysql://192.168.10.6:3306/mon?connectTimeout=5000&autoReconnect=true
|
||||
user: monapi
|
||||
password: password
|
||||
maxWaitForConnection: 1s
|
||||
validationQuery: "/* MyService Health Check */ SELECT 1"
|
||||
minSize: 4
|
||||
@@ -56,19 +57,18 @@ middleware:
|
||||
connRetryInterval: 50
|
||||
rolesToMatch: [user, domainuser, domainadmin]
|
||||
|
||||
logging:
|
||||
level: INFO #DEBUG, TRACE, WARN, INFO
|
||||
|
||||
# Settings for logging to a file
|
||||
file:
|
||||
# If true, addToBatch log statements to a file
|
||||
enabled: true
|
||||
# Do not addToBatch log statements below this threshold to the file
|
||||
threshold: ALL
|
||||
# The file to which statements will be logged
|
||||
currentLogFilename: /var/log/mon-api/mon-api.log
|
||||
# When the log file rolls over, the file will be archived to example-2012-03-15.log.gz
|
||||
# example.log will be truncated, and new statements written to it
|
||||
archivedLogFilenamePattern: /var/log/mon-api/mon-api%d.log.gz
|
||||
# The maximum number of log files to archive
|
||||
archivedFileCount: 10
|
||||
# Logging settings.
|
||||
logging:
|
||||
|
||||
# The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
|
||||
level: INFO
|
||||
|
||||
# Logger-specific levels.
|
||||
loggers:
|
||||
|
||||
# Sets the level for 'com.example.app' to DEBUG.
|
||||
com.example.app: DEBUG
|
||||
|
||||
appenders:
|
||||
- type: console
|
||||
Reference in New Issue
Block a user