Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1379

logback in android app with 2 processes just logs on 1 process

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.1.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

       

      Description

      Hello

      I'm using version 1.1.1-4 and having following problem:

      In an android-app environment I'm using a Service, which is configured to run in a separately Process defined in the AndroidManifest.xml  like this:

       <application>
              <service
                  android:name="com.myfirm.myproject.MyService"
                  android:enabled="true"
                  android:exported="true"
                  android:process=":MyServiceProcessName">
                  <intent-filter>
                      <action android:name="com.myfirm.myproject.MyService.ANDROID_MYSERVICE_BINDING_ACTION" />
                  </intent-filter>
              </service>
          </application>
      

      When I let the service running in the app-process (remove the android:process attribute) all Log statements of the service-class and the app-classes(activities,etc...) are getting logged as expected.

      When I use the android:process statement above in the manifest, and therewith using a separate Process for the Service the behavior is in the way, that from the app-Process (which gets created first) all Log statements are missing in the log file.

      It seems to be an bug that this constellation is not being supported, or does a workaround exists?

       
       

        Attachments

          Activity

            People

            • Assignee:
              logback-dev Logback dev list
              Reporter:
              schlud Lukas Schlud
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: