Skip to content

Improve logging integration to NiryoRobot#15

Merged
jmottier-niryo merged 5 commits intoNiryoRobotics:masterfrom
ctmbl:feat/logger
Nov 18, 2025
Merged

Improve logging integration to NiryoRobot#15
jmottier-niryo merged 5 commits intoNiryoRobotics:masterfrom
ctmbl:feat/logger

Conversation

@ctmbl
Copy link
Copy Markdown
Contributor

@ctmbl ctmbl commented Nov 17, 2025

This PR proposes several minor improvements to the use of the logging facility by the NiryoRobot class.

Mainly it allows the user to pass a custom logger, allowing to:

  • use different loggers for different NiryoRobot instances (main feature)
  • get rid of the default handler that prints to stdout without any formatting

It also suggest to lower the logging level of the No new conveyor detected message from ERROR to WARNING in accordance with the logging documentation definition of these levels.

Copy link
Copy Markdown
Collaborator

@jmottier-niryo jmottier-niryo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are nice additions to PyNiryo's logging

@jmottier-niryo jmottier-niryo merged commit edf2b09 into NiryoRobotics:master Nov 18, 2025
1 check failed
@ctmbl ctmbl deleted the feat/logger branch November 18, 2025 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants