5

GKSession开始搜索时如何停止以下代码?

 BTM: posting notification BluetoothAvailabilityChangedNotification
2011-05-17 20:25:05.666 BLUConnect[2120:307] BTM: Adding new device 0x110db0 Jahangir Nawaz’s iPhone 00:23:DF:3C:BC:5B 0xf5210003
2011-05-17 20:25:05.669 BLUConnect[2120:307] BTM: _btServiceEventCallback: service = 0xffffffff eventType = 0 event = 0 result = 0
2011-05-17 20:25:06.406 BLUConnect[2120:307] BTM: _btServiceEventCallback: service = 0x800 eventType = 0 event = 1 result = 0
2011-05-17 20:25:06.466 BLUConnect[2120:307] BTM: _btServiceEventCallback: service = 0x800 eventType = 0 event = 11 result = 305
2011-05-17 20:25:06.491 BLUConnect[2120:307] BTM: received BT_SERVICE_CONNECT event type with 0 currently connected services
2011-05-17 20:25:06.494 BLUConnect[2120:307] BTM: posting notification BluetoothDeviceConnectFailedNotification
2011-05-17 20:25:07.467 BLUConnect[2120:307] BTM: received BT_LOCAL_DEVICE_CONNECTION_STATUS_CHANGED event
2011-05-17 20:25:07.469 BLUConnect[2120:307] BTM: posting notification BluetoothConnectionStatusChangedNotification
2011-05-17 20:25:11.571 BLUConnect[2120:307] BTM: _btServiceEventCallback: service = 0xffffffff eventType = 0 event = 0 result = 0
2011-05-17 20:25:12.576 BLUConnect[2120:307] BTM: _btServiceEventCallback: service = 0x800 eventType = 0 event = 1 result = 0
2011-05-17 20:25:13.581 BLUConnect[2120:307] BTM: _btServiceEventCallback: service = 0x800 eventType = 0 event = 11 result = 305
2011-05-17 20:25:13.590 BLUConnect[2120:307] BTM: received BT_SERVICE_CONNECT event type with 0 currently connected services
2011-05-17 20:25:13.591 BLUConnect[2120:307] BTM: posting notification BluetoothDeviceConnectFailedNotification
2011-05-17 20:25:14.587 BLUConnect[2120:307] BTM: received BT_LOCAL_DEVICE_CONNECTION_STATUS_CHANGED event
2011-05-17 20:25:14.589 BLUConnect[2120:307] BTM: posting notification BluetoothConnectionStatusChangedNotification
2011-05-17 20:25:15.594 BLUConnect[2120:307] BTM: _btServiceEventCallback: service = 0xffffffff eventType = 0 event = 0 result = 0
2011-05-17 20:25:16.598 BLUConnect[2120:307] BTM: _btServiceEventCallback: service = 0x800 eventType = 0 event = 1 result = 0
2011-05-17 20:25:17.604 BLUConnect[2120:307] BTM: _btServiceEventCallback: service = 0x800 eventType = 0 event = 11 result = 305
2011-05-17 20:25:17.613 BLUConnect[2120:307] BTM: received BT_SERVICE_CONNECT event type with 0 currently connected services
2011-05-17 20:25:17.614 BLUConnect[2120:307] BTM: posting notification BluetoothDeviceConnectFailedNotification
2011-05-17 20:25:18.611 BLUConnect[2120:307] BTM: received BT_LOCAL_DEVICE_CONNECTION_STATUS_CHANGED event
2011-05-17 20:25:18.613 BLUConnect[2120:307] BTM: posting notification BluetoothConnectionStatusChangedNotification
2011-05-17 20:25:19.618 BLUConnect[2120:307] BTM: _btServiceEventCallback: service = 0xffffffff eventType = 0 event = 0 result = 0
2011-05-17 20:25:20.624 BLUConnect[2120:307] BTM: _btServiceEventCallback: service = 0x800 eventType = 0 event = 1 result = 0
4

2 回答 2

1

我认为这是在 Apple 的库中,似乎没有直接的方法可以关闭它 - 我会提交一个“错误”票......

我很确定,为了避免这些日志,不可能重载/覆盖 NSLog 方法。

请问是否有特殊需要关闭此功能?

问候,
马蒂亚斯

于 2012-07-11T12:50:21.303 回答
0

这是不可能的。日志自动发生在苹果给你创建和使用 GKSessions 的方法上。除了减少控制台中的混乱之外,我看不出有任何正当理由需要关闭它们。

干杯,西德

于 2012-08-06T18:34:05.993 回答