Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differ between YAP and LOG information #6

Open
gabryelreyes opened this issue Apr 15, 2023 · 1 comment
Open

Differ between YAP and LOG information #6

gabryelreyes opened this issue Apr 15, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@gabryelreyes
Copy link
Collaborator

General question: How do we differ between YAP and LOG information?

In the simulation this has been solved by routing the print() methods to the console, and the write() method to the SocketServer; which may not be ideal in the architecture, but allows for nice debugging. In the target this is not possible, as both print and write are routed to the Serial interface.

Ideally the LOG information would be sent on its own YAP Data channel, meaning that the Logging Module should be able to write to the YAP Server somehow (only the App knows the YAP Server Instance, so it is not an ideal solution). And maybe only the INFO level Logs, not the DEBUG logs.

Other solution is turning Logs completely off on the target, and any information to be transmitted must be available for the App to read and re-route.

Originally posted by @gabryelreyes in #2 (comment)

@BlueAndi BlueAndi added the enhancement New feature or request label Jul 2, 2023
@BlueAndi
Copy link
Owner

With #47 the logging will be disabled in case the socket server is started via command line. This is just a first step into this direction to make it easier for the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants