Using logback in OSGI Bundle [message #772817] |
Fri, 30 December 2011 12:11  |
Eclipse Guest Messages: 93 Registered: February 2013 Location: Vienna |
Member |
|
|
Hello,
I am trying to use logback in my OSGI bundle. I see that the bundle starts up successfully and appears as "ACTIVE" in the Virgo Admin Console. However I do not find the log statements in any log files.
Please let me know if I need to configure any additional steps.
I am dropping the hellobundle-1.0.0.jar into the pickup folder to start the bundle.
I have attached the source code and the jar file for my OSGI bundle.
Thanks,
Arun
|
|
|
|
Re: Using logback in OSGI Bundle [message #772825 is a reply to message #772823] |
Fri, 30 December 2011 12:32   |
Eclipse Guest Messages: 93 Registered: February 2013 Location: Vienna |
Member |
|
|
I am providing my own logback.xml file in the bundle.
The file contents are as below.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d %5p | %t | %-55logger{55} | %m %n</pattern>
</encoder>
</appender>
<logger name="com.hello">
<level value="INFO" />
</logger>
<root>
<level value="INFO" />
<appender-ref ref="CONSOLE" />
</root>
</configuration>
File is located in package com.hello.resources
Thanks,
Arun
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06582 seconds