我正在从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
并非所有内容都会多次显示。