[logback-user] Evaluator and Layout Pattern
ekkehard
ekkehard at gentz-software.de
Sun Oct 19 13:34:58 CEST 2008
Ceki Gulcu schrieb:
> ekkehard wrote:
>
>> perhaps the problem is that my BundleMarkerConverter class was not found -
>> all runs under OSGI
>>
>
> Yes, that is probably the cause of the problem. I have committed changes for
> better error reporting. Could you build logback from the trunk?
>
> It should be as easy as:
>
> svn co http://svn.qos.ch/repos/logback/trunk/ target_directory
> cd target_diurectory
> mvn install
>
>
I tried it but got an error:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.slf4j:slf4j-api:jar:1.5.4-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.slf4j -DartifactId=slf4j-api \
-Dversion=1.5.4-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1) ch.qos.logback:logback-classic:jar:0.9.10-SNAPSHOT
2) org.slf4j:slf4j-api:jar:1.5.4-SNAPSHOT
----------
1 required artifact is missing.
for artifact:
ch.qos.logback:logback-classic:jar:0.9.10-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
----------------------------------------------------------------------------------------------------
doesnt matter - I found the solution for OSGI:
I had to add a package-import-dependency to
logback-classic bundle:
import-package: org.ekkehard.logback.util
now my org.ekkehard.logback.util.BundleMarkerConverter was found and
works well :-)
BTW: I started with logback-test.xml and
<configuration debug="true">
would be great if you could print also if conversionRules were well or wrong
thx
ekke
--
ekkehard gentz
software-architect
erp-consultant
max-josefs-platz 30, D-83022 rosenheim, germany
homeoffice (1+1 VoIP): +49 8031 2068 325
mobile (iPhone): +49 151 19424929
mailto:ekkehard at gentz-software.de
homepage: http://www.gentz-software.de
opensource: http://ekkehard.org
blog (en): http://ekkes-corner.org
blog (de): http://ekkes-ecke.org
skype: ekke.gentz
Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://qos.ch/pipermail/logback-user/attachments/20081019/8c846017/attachment-0001.htm
More information about the Logback-user
mailing list