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

Logging system needs support for registering a callback function to grab the log output. #32

Open
MattGuerrette opened this issue Apr 16, 2016 · 3 comments
Assignees

Comments

@MattGuerrette
Copy link
Member

This functionality is really geared towards development of the editor. It would be nice to be able to register a callback into Hatchit from the editor so I could grab any debug statements that are thrown and can then output them to the GUI

@raselneck
Copy link
Contributor

What do you want the signature to be? Return void and take in a string that is the formatted message?

@MattGuerrette
Copy link
Member Author

MattGuerrette commented Apr 16, 2016

It should return void and take in both the string and the log level
Is the log level a publicly accessable enum type? Because then I would need to have access to it in the editor

@raselneck
Copy link
Contributor

Okay. And yup. Because of the stylistic guide on enums, it's inside of the Debug class currently but if you'll be using it in the editor I can put it in its own file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants