Android LogCat多次显示消息

时间:2014-09-22 14:39:18

标签: java android android-logcat

我正在从logcat打印日志到我的(非虚拟)Android设备(android 4.2.2)上的文本文件。该应用程序全天候运行。问题是所有内容都被多次记录。

logcat的:

09-22 15:15:06.924 I/EFLog   ( 8303): start new thread: Thread[Thread-20688,5,main]
09-22 15:15:06.924 I/EFLog   ( 8303): start new thread: Thread[Thread-20688,5,main]
09-22 15:15:06.924 I/EFLog   ( 8303): start new thread: Thread[Thread-20688,5,main]
09-22 15:15:06.924 I/EFLog   ( 8303): start new thread: Thread[Thread-20688,5,main]
09-22 15:15:06.924 I/EFLog   ( 8303): start new thread: Thread[Thread-20688,5,main]
09-22 15:15:06.924 I/EFLog   ( 8303): start new thread: Thread[Thread-20688,5,main]
09-22 15:15:06.924 I/EFLog   ( 8303): start new thread: Thread[Thread-20688,5,main]
09-22 15:15:06.924 I/EFLog   ( 8303): start new thread: Thread[Thread-20688,5,main]
09-22 15:15:06.924 I/EFLog   ( 8303): start new thread: Thread[Thread-20688,5,main]
09-22 15:15:06.924 I/EFLog   ( 8303): start new thread: Thread[Thread-20688,5,main]
09-22 15:15:06.924 I/EFLog   ( 8303): start new thread: Thread[Thread-20688,5,main]
09-22 15:15:06.924 F/test    ( 8303):  token : xxxxxxxx
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 10:00:00:26:39:f0, roaming: false, failover: false, isAvailable: true
09-22 15:15:06.944 I/EFLog   ( 8303): connection available
09-22 15:15:06.944 I/EFLog   ( 8303): connection available
09-22 15:15:06.944 I/EFLog   ( 8303): connection available
09-22 15:15:06.944 I/EFLog   ( 8303): connection available
09-22 15:15:06.944 I/EFLog   ( 8303): connection available
09-22 15:15:06.944 I/EFLog   ( 8303): connection available
09-22 15:15:06.944 I/EFLog   ( 8303): connection available
09-22 15:15:06.944 I/EFLog   ( 8303): connection available
09-22 15:15:06.944 I/EFLog   ( 8303): connection available
09-22 15:15:06.944 I/EFLog   ( 8303): connection available
09-22 15:15:06.944 I/EFLog   ( 8303): connection available

并非所有内容都会多次显示。

有2个similair问题无法回答我的问题,因为它们都是关于虚拟机的。 thisthis one

0 个答案:

没有答案