Ok, you right
.
This is what I did in logback.xml:
Code:
<logger level="DEBUG" additivity="false" name="com.log.test">
<appender-ref ref="STDOUT"/>
<appender-ref ref="FILE_SERVICE"/>
</logger>
<!--<root level="DEBUG">-->
<!--<!– The following level element is not necessary since the –>-->
<!--<!– level of the root level is set to DEBUG by default. –>-->
<!--<!–<level value="DEBUG"/>–>-->
<!--<appender-ref ref="STDOUT"/>-->
<!--<appender-ref ref="FILE_SERVICE"/>-->
<!--</root>-->
Result in serviceability/logs/log.log and /logs/dm-server/log.log are similar
Code:
[2010-04-14 11:22:47.804] fs-watcher com.log.test.LogTestActivator Hello world
[2010-04-14 11:22:47.855] start-signalling-1 com.springsource.osgi.medic.eventlog.default DE0005I Started bundle 'log-test' version '1.0.0'.
[2010-04-14 11:24:32.963] fs-watcher com.springsource.osgi.medic.eventlog.default HD0001I Hot deployer processing 'MODIFIED' event for file 'log-test-1.0.0.jar'.
[2010-04-14 11:24:33.061] fs-watcher com.springsource.osgi.medic.eventlog.default DE0007I Refreshing bundle 'log-test' version '1.0.0'.
[2010-04-14 11:24:33.117] fs-watcher com.springsource.osgi.medic.eventlog.default DE0010I Stopping bundle 'log-test' version '1.0.0'.
[2010-04-14 11:24:33.118] fs-watcher com.log.test.LogTestActivator Goodbye World
[2010-04-14 11:24:33.125] fs-watcher com.springsource.osgi.medic.eventlog.default DE0011I Stopped bundle 'log-test' version '1.0.0'.
[2010-04-14 11:24:33.506] fs-watcher com.springsource.osgi.medic.eventlog.default DE0004I Starting bundle 'log-test' version '1.0.0'.
[2010-04-14 11:24:33.510] fs-watcher com.log.test.LogTestActivator Hello world
[2010-04-14 11:24:33.516] start-signalling-1 com.springsource.osgi.medic.eventlog.default DE0005I Started bundle 'log-test' version '1.0.0'.
[2010-04-14 11:24:33.529] fs-watcher com.springsource.osgi.medic.eventlog.default DE0008I Refreshed bundle 'log-test' version '1.0.0'.
As far as why it is not writing to the file that you want it to write to - not sure. Try to put in a debugger and see.
You can do it with a -debug flag for the startup.bat/sh. Debugger will start up on port 8000 by default.
Good luck.