diff --git a/example/pom.xml b/example/pom.xml index eeb1aed1b9..dd993c00f0 100644 --- a/example/pom.xml +++ b/example/pom.xml @@ -109,6 +109,11 @@ netty-transport-rxtx ${project.version} + + ch.qos.logback + logback-classic + runtime + diff --git a/example/src/main/resources/logback.xml b/example/src/main/resources/logback.xml new file mode 100644 index 0000000000..ea5238ed68 --- /dev/null +++ b/example/src/main/resources/logback.xml @@ -0,0 +1,11 @@ + + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + + + + diff --git a/run-example.sh b/run-example.sh index b931bab17b..2e8f972bf6 100755 --- a/run-example.sh +++ b/run-example.sh @@ -66,6 +66,7 @@ if [[ -z "$EXAMPLE" ]] || [[ -z "$EXAMPLE_CLASS" ]] || [[ $# -ne 0 ]]; then echo " Usage: $0 [-D[=] ...] " >&2 echo "Example: $0 -Dport=8443 -Dssl http-server" >&2 echo " $0 -Dhost=127.0.0.1 -Dport=8009 echo-client" >&2 + echo " $0 -DlogLevel=debug -Dhost=127.0.0.1 -Dport=8009 echo-client" >&2 echo >&2 echo "Available examples:" >&2 echo >&2