hadronized / spectra

Rust demoscene engine (currently on hold)
122 stars 6 forks source link

Logging #57

Open hadronized opened 5 years ago

hadronized commented 5 years ago

spectra needs to log things. Logging is done by using a user-provided object that logs whatever spectra needs to. A trait is currently available in spectra::logger.

Left to do:

hadronized commented 5 years ago

The current code requires someone to depend on both spectra::app::runner and spectra::resource::context to build an application. Maybe we could lift that into spectra::app directly? The idea is that:

The last point shows that we should accept a type as argument to runner builders and constraint them with the required traits.