그냥 단말기만 연결해도 실시간으로 무의미한 워닝 및 에러 로그가 Logcat에 출력이 되고 있습니다.

 

08-13 11:44:54.850: W/System.err(2412):  at android.bluetooth.BluetoothSocket.throwErrnoNative(Native Method)
08-13 11:44:54.850: W/System.err(2412):  at android.bluetooth.BluetoothAdapter.createNewRfcommSocketAndRecord(BluetoothAdapter.java:1075)
08-13 11:44:54.850: W/System.err(2412):  at android.bluetooth.BluetoothAdapter.listenUsingRfcommWithServiceRecord(BluetoothAdapter.java:1011)
08-13 11:44:54.850: W/System.err(2412):  at com.mobileleader.sync.obex.connection.BluetoothConnection$AcceptThread.run(BluetoothConnection.java:136)
08-13 11:44:54.860: E/BLZ20_WRAPPER(2412): ##### ERROR : __listen_prot_rfcomm: failed with reason 12#####
08-13 11:44:54.870: E/BLZ20_WRAPPER(2412): ##### ERROR : __listen_prot_rfcomm: failed with reason 12#####
08-13 11:44:54.880: E/BLZ20_WRAPPER(2412): ##### ERROR : __listen_prot_rfcomm: failed with reason 1#####
08-13 11:44:55.881: W/System.err(2412): java.io.IOException: Bad file number
08-13 11:44:55.881: W/System.err(2412):  at android.bluetooth.BluetoothSocket.throwErrnoNative(Native Method)
08-13 11:44:55.881: W/System.err(2412):  at android.bluetooth.BluetoothAdapter.createNewRfcommSocketAndRecord(BluetoothAdapter.java:1075)
08-13 11:44:55.881: W/System.err(2412):  at android.bluetooth.BluetoothAdapter.listenUsingRfcommWithServiceRecord(BluetoothAdapter.java:1011)
08-13 11:44:55.881: W/System.err(2412):  at com.mobileleader.sync.obex.connection.BluetoothConnection$AcceptThread.run(BluetoothConnection.java:136)
08-13 11:44:55.891: E/BLZ20_WRAPPER(2412): ##### ERROR : __listen_prot_rfcomm: failed with reason 12#####
08-13 11:44:55.901: E/BLZ20_WRAPPER(2412): ##### ERROR : __listen_prot_rfcomm: failed with reason 12#####
08-13 11:44:55.911: E/BLZ20_WRAPPER(2412): ##### ERROR : __listen_prot_rfcomm: failed with reason 12#####
08-13 11:44:55.911: E/BLZ20_WRAPPER(2412): ##### ERROR : __listen_prot_rfcomm: failed with reason 1#####

 

이 상태에서 개발용 앱을 띄운 다음에 보고 싶은 로그를 Log.i(...)로 찍습니다.

그럼 붉은 색의 로그에 섞여서 스크롤 되겠죠... 이걸 또 Copy 해서 검색해서 찾아야 합니다.

매번 이런식으로 디버깅해야 하니 대체 누가 이따위의 디버깅툴을 만들었는지...

보고 싶은건 i 로그인데 e나 w 로그가 우선순위라서 같이 나오게 되어 있습니다.

정말 비생산적인 방식이라고 생각되는데 혹시 i 로그만 따로 볼수 있는 방법이 없을까요? 아니면 e, w 로그 안나오게 하는 방법이라도...