[slf4j-dev] Testing with Felix
Ceki Gülcü
listid at qos.ch
Thu Feb 22 22:52:09 CET 2007
Looking good:
-> install file:/c:/home/ceki/SLF4J/org.osgi.compendium-4.0.jar
Bundle ID: 6
-> start 6
-> packages
System Bundle (0): org.osgi.framework; version=1.3.0
System Bundle (0): org.osgi.service.packageadmin; version=1.2.0
System Bundle (0): org.osgi.service.startlevel; version=1.0.0
Apache Felix Shell Service (1): org.ungoverned.osgi.service.shell;
version=1.0.0
Apache Felix Shell Service (1): org.apache.felix.shell; version=1.0.0
Apache Felix Bundle Repository (3): org.osgi.service.obr; version=0.0.0
slf4j-api (4): org.slf4j.spi; version=1.3.0
slf4j-api (4): org.slf4j.helpers; version=1.3.0
slf4j-api (4): org.slf4j; version=1.3.0
slf4j-simple (5): org.slf4j.impl; version=0.0.0
-> ps
START LEVEL 1
ID State Level Name
[ 0] [Active ] [ 0] System Bundle (0.8.0.incubator)
[ 1] [Active ] [ 1] Apache Felix Shell Service (0.8.0.incubator)
[ 2] [Active ] [ 1] Apache Felix Shell TUI (0.8.0.incubator)
[ 3] [Active ] [ 1] Apache Felix Bundle Repository (0.8.0.incubator)
[ 4] [Active ] [ 1] slf4j-api (1.3.0.SNAPSHOT)
[ 5] [Active ] [ 1] slf4j-simple (1.3.0.SNAPSHOT)
[ 6] [Active ] [ 1] null
->
install
file:/c:/home/ceki/SLF4J/osgi-over-slf4j/target/osgi-over-slf4j-1.3.0-SNAPSHOT.jar
Bundle ID: 7
-> start 7
org.osgi.framework.BundleException: Unresolved package in bundle 7:
org.osgi.service.log
-> install
file:/c:/home/ceki/SLF4J/slf4j-osgi-test-bundle/target/slf4j-osgi-test-bundle-1.3.0-SNAPSHOT.jar
Bundle ID: 8
-> start 8
DEBUG: WIRE: 8.0 -> org.slf4j -> 4.0
DEBUG: WIRE: 8.0 -> org.osgi.framework -> 0
0 [Felix Shell TUI] INFO org.slf4j.osgi.test.Activator - Starting to listen
for service events.
20 [Felix Shell TUI] INFO org.slf4j.osgi.test.Activator - SimpleBundle:
Service of type org.slf4j.osgi.test.service.Probe registered.
20 [Felix Shell TUI] INFO test2 - Hello world 2.
20 [Felix Shell TUI] WARN test2 - Hello world 3.
20 [Felix Shell TUI] WARN test2 - Hello world 3
java.lang.Exception: This is a test exception.
at org.slf4j.osgi.test.Activator.test2(Activator.java:133)
at org.slf4j.osgi.test.Activator.start(Activator.java:81)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:509)
at org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:345)
at
org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:82)
at
org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:265)
at
org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:167)
at java.lang.Thread.run(Thread.java:595)
20 [Felix Shell TUI] ERROR test2 - Hello world 4.
20 [Felix Shell TUI] ERROR test2 - Hello world 3
20 [Felix Shell TUI] ERROR test2 - Hello world 4.
java.lang.Exception: This is a test exception.
at org.slf4j.osgi.test.Activator.test2(Activator.java:133)
at org.slf4j.osgi.test.Activator.start(Activator.java:81)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:509)
at org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:345)
at
org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:82)
at
org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:265)
at
org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:167)
at java.lang.Thread.run(Thread.java:595)
20 [Felix Shell TUI] INFO testNull - null
20 [Felix Shell TUI] WARN testNull - null
20 [Felix Shell TUI] ERROR testNull - null
20 [Felix Shell TUI] INFO testNull - null
java.lang.Exception: This is a test exception.
at org.slf4j.osgi.test.Activator.testNull(Activator.java:159)
at org.slf4j.osgi.test.Activator.start(Activator.java:82)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:509)
at org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:345)
at
org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:82)
at
org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:265)
at
org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:167)
at java.lang.Thread.run(Thread.java:595)
20 [Felix Shell TUI] WARN testNull - null
java.lang.Exception: This is a test exception.
at org.slf4j.osgi.test.Activator.testNull(Activator.java:159)
at org.slf4j.osgi.test.Activator.start(Activator.java:82)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:509)
at org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:345)
at
org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:82)
at
org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:265)
at
org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:167)
at java.lang.Thread.run(Thread.java:595)
20 [Felix Shell TUI] ERROR testNull - null
java.lang.Exception: This is a test exception.
at org.slf4j.osgi.test.Activator.testNull(Activator.java:159)
at org.slf4j.osgi.test.Activator.start(Activator.java:82)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:509)
at org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:345)
at
org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:82)
at
org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:265)
at
org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:167)
at java.lang.Thread.run(Thread.java:595)
30 [Felix Shell TUI] INFO testMarker - hello
30 [Felix Shell TUI] WARN testMarker - hello
30 [Felix Shell TUI] ERROR testMarker - hello
30 [Felix Shell TUI] INFO testMarker - hello world
30 [Felix Shell TUI] WARN testMarker - hello world
30 [Felix Shell TUI] ERROR testMarker - hello world
30 [Felix Shell TUI] INFO testMarker - hello world and universe
30 [Felix Shell TUI] WARN testMarker - hello world and universe
30 [Felix Shell TUI] ERROR testMarker - hello world and universe
->
--
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch
More information about the slf4j-dev
mailing list