ColdBox question: I’m running my site with a split...
# box-products
p
ColdBox question: I’m running my site with a split architecture. As I migrate over from older process-based code to ColdBox, I have both in place and that works well. I’d like to be able to use the LogBox instance that’s already in ColdBox, but I’m unsure of how to set it up in my setting. Do I modify the LogBox config inside the
config/Coldbox.cfc
? If so, how would I call for that in my regular CFM pages? In my
onRequestStart
page I do have
application.cbController.getModuleService().loadMappings();
which I think gives me access, but I’m not quite sure of the syntax…
b
Prolly a few ways to get it.
application.wirebox.getLogBox()
should be one of them.
Or via injection syntax
Copy code
application.wirebox.getInstance('logbox')
// or a specific logger
application.wirebox.getInstance('logbox:logger:myLogger')