|
|
597ab48699
|
feat: replace stdlib logging with hivecore_logger SDK
- Import hivecore_logger alongside stdlib logging
- Replace _setup_file_logging() with hivecore_logger.init() using
node_name='ctrlgui', log_dir from ROS2 param log_base_dir,
enable_signal_handlers=False and enable_auto_shutdown_hook=False
to avoid conflicts with NiceGUI/ROS2 lifecycle
- Obtain logger instance via hivecore_logger.get_logger(); all
existing self.file_logger call sites (info/warning/error) unchanged
- Add hivecore_logger.stop() in shutdown() to flush async log queue
- Update default log_base_dir parameter to /var/log/robot
- Log output format: [timestamp] [LEVEL] [ctrlgui] [thread] [file:line] msg
written to <log_dir>/<YYYYMMDD>/ctrlgui.log with console echo
|
2026-03-04 18:40:10 +08:00 |
|