DisableConsoleLogger not work #111

Open
opened 2021-03-17 17:35:56 +01:00 by wrickout · 1 comment
wrickout commented 2021-03-17 17:35:56 +01:00 (Migrated from github.com)

Hi,
I put DisableConsoleLogger(); before Init(); or after, but the result is the same on console:

[2021-03-17 17:31:42.372] [console] [info] LocalIP: 192.168.10.1 [device_discovery.cpp] [OnBroadcast] [201]
[2021-03-17 17:31:42.373] [console] [info] DeviceIP: 192.168.10.2 [device_discovery.cpp] [OnBroadcast] [202]
[2021-03-17 17:31:42.373] [console] [info] Command Port: 55501 [device_discovery.cpp] [OnBroadcast] [203]
[2021-03-17 17:31:42.373] [console] [info] Data Port: 56001 [device_discovery.cpp] [OnBroadcast] [204]
[2021-03-17 17:31:42.391] [console] [info] New Device [device_discovery.cpp] [OnData] [99]
[2021-03-17 17:31:42.393] [console] [info] Handle: 0 [device_discovery.cpp] [OnData] [100]
[2021-03-17 17:31:42.393] [console] [info] Broadcast Code: OTFxxxxxxxxxxxxxx[device_discovery.cpp] [OnData] [101]
[2021-03-17 17:31:42.393] [console] [info] Type: 1 [device_discovery.cpp] [OnData] [102]
[2021-03-17 17:31:42.394] [console] [info] IP: 192.168.10.2 [device_discovery.cpp] [OnData] [103]
[2021-03-17 17:31:42.394] [console] [info] Command Port: 55501 [device_discovery.cpp] [OnData] [104]
[2021-03-17 17:31:42.395] [console] [info] Data Port: 56001 [device_discovery.cpp] [OnData] [105]
[2021-03-17 17:31:42.396] [console] [info] Send Command: Set 0 Id 2 Seq 3 [command_channel.cpp] [Send] [243]
[2021-03-17 17:31:42.417] [console] [info] Recieve Ack: Set 0 Id 2 Seq 3 [command_handler.cpp] [OnCommand] [118]
[WARNING] Lidar sn: [xxxxxxxxxxxxxxx] Connect!!!

Hi, I put DisableConsoleLogger(); before Init(); or after, but the result is the same on console: [2021-03-17 17:31:42.372] [console] [info] LocalIP: 192.168.10.1 [device_discovery.cpp] [OnBroadcast] [201] [2021-03-17 17:31:42.373] [console] [info] DeviceIP: 192.168.10.2 [device_discovery.cpp] [OnBroadcast] [202] [2021-03-17 17:31:42.373] [console] [info] Command Port: 55501 [device_discovery.cpp] [OnBroadcast] [203] [2021-03-17 17:31:42.373] [console] [info] Data Port: 56001 [device_discovery.cpp] [OnBroadcast] [204] [2021-03-17 17:31:42.391] [console] [info] New Device [device_discovery.cpp] [OnData] [99] [2021-03-17 17:31:42.393] [console] [info] Handle: 0 [device_discovery.cpp] [OnData] [100] [2021-03-17 17:31:42.393] [console] [info] Broadcast Code: OTFxxxxxxxxxxxxxx[device_discovery.cpp] [OnData] [101] [2021-03-17 17:31:42.393] [console] [info] Type: 1 [device_discovery.cpp] [OnData] [102] [2021-03-17 17:31:42.394] [console] [info] IP: 192.168.10.2 [device_discovery.cpp] [OnData] [103] [2021-03-17 17:31:42.394] [console] [info] Command Port: 55501 [device_discovery.cpp] [OnData] [104] [2021-03-17 17:31:42.395] [console] [info] Data Port: 56001 [device_discovery.cpp] [OnData] [105] [2021-03-17 17:31:42.396] [console] [info] Send Command: Set 0 Id 2 Seq 3 [command_channel.cpp] [Send] [243] [2021-03-17 17:31:42.417] [console] [info] Recieve Ack: Set 0 Id 2 Seq 3 [command_handler.cpp] [OnCommand] [118] [WARNING] Lidar sn: [xxxxxxxxxxxxxxx] Connect!!!
Livox-SDK commented 2021-03-31 14:16:31 +02:00 (Migrated from github.com)

Hi @wrickout
DisableConsoleLogger() need to be called before Init();
And we have tested it on Windows 7/10 Ubuntu 16.04 and Mac OS.
Could you describes your test environment in detail.

Hi @wrickout DisableConsoleLogger() need to be called before Init(); And we have tested it on Windows 7/10 Ubuntu 16.04 and Mac OS. Could you describes your test environment in detail.
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mmr/Livox-SDK#111