You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to setup a global logger so I can intercept the log messages for an extra output over bluetooth. But I dont know how to point my functions to the rtt-target functions.... https://defmt.ferrous-systems.com/global-logger
pubfnset_defmt_channel(channel:UpChannel){
rtt_target::set_defmt_channel(...)// this on is possible}unsafeimpl defmt::LoggerforLogger{fnacquire(){
rtt_target::defmt::acquire()// not accessible}unsafefnflush(){
rtt_target::defmt::flush()// not accessible}unsafefnrelease(){
rtt_target::defmt::release()// not accessible}unsafefnwrite(bytes:&[u8]){
rtt_target::defmt::write(...)// not accessible}}
The text was updated successfully, but these errors were encountered:
To do something like this, you'll need to keep the "defmt" feature disabled, copy the contents of defmt.rs and modify that for your needs. The "defmt" feature automatically registers a global logger, so you can't make another beside it.
I want to setup a global logger so I can intercept the log messages for an extra output over bluetooth. But I dont know how to point my functions to the rtt-target functions....
https://defmt.ferrous-systems.com/global-logger
The text was updated successfully, but these errors were encountered: