B4X FEED Server logging & slf4j [SOLVED]

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Server logging & slf4j [SOLVED] است. این موضوع تا کنون 69 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Server logging & slf4j [SOLVED]
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
69
پسندها
0
آخرین ارسال توسط PracticalSoft
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
Jun 6, 2020
11,593
4,507
Im using a library that included slf4j as a dependency. What Ive noticed is that when I include this library my (Jetty) Server starts logging at the debug level.

According to the Jetty documentation documentation this is expected;

If the class org.slf4j.Logger exists in server classpath, the Jetty implementation becomes org.eclipse.jetty.util.log.Slf4jLog.

The fix is to force the jetty logging implementation back to StdErrLog, which you can do by setting the following in the jetty-logging.properties file like this;

org.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog

What Im after is a way to do this via code.

Ive tried several variations of this via JavaObject but I cant get it to work (code below give an error java.lang.RuntimeException: Field: org.eclipse.jetty.util.log.class not found in: anywheresoftware.b4j.object.ServerWrapper)

B4X:

کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید


 

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
عقب
بالا