diff --git a/startkey.sh b/startkey.sh new file mode 100644 index 0000000..0daff01 --- /dev/null +++ b/startkey.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +java -Dlogback.configurationFile=tools/logback.xml -jar tools/key-2.13.0-exe.jar diff --git a/tools/logback.xml b/tools/logback.xml new file mode 100644 index 0000000..198a2fd --- /dev/null +++ b/tools/logback.xml @@ -0,0 +1,51 @@ + + + + + + ${user.home}/.key/logs/key_${timestamp}.log + false + + UTF-8 + + %date|%level|%thread|%logger|%file:%line|%replace(%msg){'[\n\r]','\\n'}|%replace(%ex){'[\n\r]','\\n'}%nopex|%n + true + + + + + + [%date{HH:mm:ss.SSS}] %highlight(%-5level) %cyan(%logger{0}) - %msg%ex%n + + + INFO + + + + + + + + + + + + + + + + + [%relative] %highlight(%-5level) %cyan(%logger{0}): %msg %n + + + TRACE + + + + + + +