invisible-college / statebus

All aboard the STATEBUS!!!
117 stars 5 forks source link

add option to set honk #54

Closed phucanhapril closed 3 months ago

phucanhapril commented 3 months ago

heyo! normally when i'm developing i don't have a need to see the whole state log printed out. it ends up hiding the information that i'm printing out myself. i couldn't figure out how to set the honk level so i did this locally--is there a way to do this already?

toomim commented 3 months ago

Cool! This looks nice, but FYI you can also just set bus.honk directly.

You can do it on server like:

bus = require(‘statebus’).serve()
bus.honk = false   // or ‘statelog’, or true, or /RegExp/

You can do it on client like:

bus.honk = false   // or ‘statelog’, or true, or /RegExp/