Skip to content

Commit

Permalink
Add logback config for tests about models in demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Jun 24, 2020
1 parent 17c6b6a commit 6e1aa4e
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
35 changes: 35 additions & 0 deletions leshan-client-demo/logback-leshan-test.xml
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013-2015 Sierra Wireless and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
and Eclipse Distribution License v1.0 which accompany this distribution.
The Eclipse Public License is available at
http://www.eclipse.org/legal/epl-v20.html
and the Eclipse Distribution License is available at
http://www.eclipse.org/org/documents/edl-v10.html.
Contributors:
Sierra Wireless - initial API and implementation
-->
<configuration>
<!--
This file will only be used by maven by default.
If you want to use it in your IDE, just :
- use -Dlogback.configurationFile=logback-test-.xml argument
or
- put a logback-test.xml file in your classpath (it will be ignore by git)
-->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d %p %C{1.} [%t] %m%n</pattern>
</encoder>
</appender>

<root level="ERROR">
<appender-ref ref="STDOUT" />
</root>
</configuration>

35 changes: 35 additions & 0 deletions leshan-server-demo/logback-leshan-test.xml
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013-2015 Sierra Wireless and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
and Eclipse Distribution License v1.0 which accompany this distribution.
The Eclipse Public License is available at
http://www.eclipse.org/legal/epl-v20.html
and the Eclipse Distribution License is available at
http://www.eclipse.org/org/documents/edl-v10.html.
Contributors:
Sierra Wireless - initial API and implementation
-->
<configuration>
<!--
This file will only be used by maven by default.
If you want to use it in your IDE, just :
- use -Dlogback.configurationFile=logback-test-.xml argument
or
- put a logback-test.xml file in your classpath (it will be ignore by git)
-->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d %p %C{1.} [%t] %m%n</pattern>
</encoder>
</appender>

<root level="ERROR">
<appender-ref ref="STDOUT" />
</root>
</configuration>

0 comments on commit 6e1aa4e

Please sign in to comment.