summaryrefslogtreecommitdiffstats
path: root/java/vaadin-u2f/src/main/resources
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2017-10-27 15:07:39 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2017-10-27 15:07:39 +0200
commit78e9a723e1a9afd42c84c57b2d1c9ff1b3de78f4 (patch)
treefb46efea5f5b908a7f57c5eea3f3c7232d6147f6 /java/vaadin-u2f/src/main/resources
parent6799fa1e2922aab7802a09c2f147eca419e9947e (diff)
downloadshare-78e9a723e1a9afd42c84c57b2d1c9ff1b3de78f4.zip
share-78e9a723e1a9afd42c84c57b2d1c9ff1b3de78f4.tar.gz
add vaadin-u2f
Diffstat (limited to 'java/vaadin-u2f/src/main/resources')
-rw-r--r--java/vaadin-u2f/src/main/resources/Application.properties5
-rw-r--r--java/vaadin-u2f/src/main/resources/logback-test.xml41
2 files changed, 46 insertions, 0 deletions
diff --git a/java/vaadin-u2f/src/main/resources/Application.properties b/java/vaadin-u2f/src/main/resources/Application.properties
new file mode 100644
index 0000000..512362b
--- /dev/null
+++ b/java/vaadin-u2f/src/main/resources/Application.properties
@@ -0,0 +1,5 @@
+app.name=VaadinHelloWorld
+app.version=0.0.1
+app.path=/hello
+app.env=DEV
+app.logfile=/var/log/tomcat7/HelloWorld.log
diff --git a/java/vaadin-u2f/src/main/resources/logback-test.xml b/java/vaadin-u2f/src/main/resources/logback-test.xml
new file mode 100644
index 0000000..a8fcf4b
--- /dev/null
+++ b/java/vaadin-u2f/src/main/resources/logback-test.xml
@@ -0,0 +1,41 @@
+<configuration debug="true">
+
+ <contextName>HelloWorld</contextName>
+ <property resource="Application.properties" />
+ <property name="LOG_LEVEL" value="INFO" />
+ <property name="LOG_REF" value="FILE" />
+ <property name="LOG_FILE" value="${app.logfile}" />
+ <property name="LOG_PATTERN" value="%contextName %date{ISO8601} [%-5level %thread] [%file:%line] - %msg%n" />
+
+ <if condition='property("app.env").contains("DEV")'>
+ <then>
+ <property name="LOG_LEVEL" value="DEBUG" />
+ </then>
+ </if>
+
+ <if condition='isDefined("TEST")'>
+ <then>
+ <property name="LOG_FILE" value="/tmp/${app.name}.log" />
+ <property name="LOG_LEVEL" value="DEBUG" />
+ <property name="LOG_REF" value="STDOUT" />
+ </then>
+ </if>
+
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>${LOG_PATTERN}</pattern>
+ </encoder>
+ </appender>
+
+ <appender name="FILE" class="ch.qos.logback.core.FileAppender">
+ <file>${LOG_FILE}</file>
+ <encoder>
+ <pattern>${LOG_PATTERN}</pattern>
+ </encoder>
+ </appender>
+
+ <root level="${LOG_LEVEL}">
+ <appender-ref ref="${LOG_REF}" />
+ </root>
+
+</configuration>