jakobhellermann / bevy_editor_pls

In-App editor tools for bevy applications
Other
758 stars 78 forks source link

Console Log in UI #90

Open SergioRibera opened 1 year ago

SergioRibera commented 1 year ago

Features:

Screenshot Screenshot_20231110_215847

SergioRibera commented 12 months ago

@jakobhellermann any update(?

jakobhellermann commented 12 months ago

Thanks for the ping, I forgot about the PR. The UI looks good to me and it would be very cool to have this as a feature. I have just one question. Would it be possible to hook into tracing instead of log for the log viewer? Bevy uses tracing internally and I think it would be better to work directly with that.

SergioRibera commented 12 months ago

Thanks for the ping, I forgot about the PR. The UI looks good to me and it would be very cool to have this as a feature. I have just one question. Would it be possible to hook into tracing instead of log for the log viewer? Bevy uses tracing internally and I think it would be better to work directly with that.

that's an excellent suggestion, let me see how I could do it, at the moment I don't think it's possible since I implement a custom logger precisely for the management of these, so let me take a look at it and I'll come back.

SergioRibera commented 12 months ago

I have been checking and it is not possible, internally bevy does things that do not give me the control I need to replace the main logger 😞

jakobhellermann commented 11 months ago

https://discord.com/channels/691052431525675048/692648638823923732/1177575500818944032 looks like someone got tracing messages into egui to work

peanutbother commented 3 months ago

I have been checking and it is not possible, internally bevy does things that do not give me the control I need to replace the main logger 😞

@doonv got it working with their bevy_dev_console crate. I'm using it with my own fork to use some parts of it: https://github.com/peanutbother/bevy_dev_console/tree/public-interface

maybe we could combine the two as I love the idea of not only a log view but also being able to parse expressions and run custom commands from the console