Skip to content

Logcat attribution

Jugg captures logcat during Android Test runs and displays short logs related to a test method on the corresponding Test Results node. Complete device logs remain available in device details for troubleshooting instrumentation or device-level problems.

Log display and attribution scope

User scenarioCurrent supportResult
View logcat related to a failed methodSupportedMethod details display method-level logs
View complete test logs for a deviceSupportedDevice details display raw device-level logs
Separate logs in multi-device testsSupportedEach device maintains its own logcat start point and method window
Preserve attributed logs when instrumentation failsSupportedLogs in the active method window remain visible

How logcat is attributed

text
Read device time before instrumentation starts on each device
  -> Use logcat -T to capture logs after that point
  -> Instrumentation events produce the test lifecycle
  -> Prefer AndroidX TestRunner markers to determine the method window
  -> Fall back to the instrumentation lifecycle when complete markers are unavailable
  -> Output method logs to the corresponding Test Results node

Jugg uses device-side time as the logcat start point so that host-device clock skew does not filter out logs from the current run. logcat -T also reduces contamination of the first test method by historical logs in the old buffer.

Attribution boundaries

Log typeDisplay location
Logs inside the method window from the current test processCorresponding method node
Logs outside the method windowDevice details
Device noise outside the current test processDevice details
Failure stack traceAppended after method logs
Logs beyond the method-level limitDisplayed after truncation

IMPORTANT

Jugg does not infer method ownership from application tags, message text, or nearby timestamps. Method attribution depends only on AndroidX TestRunner markers or the instrumentation lifecycle.