I find this odd. I upgraded from M5 to M6 by deleting the existing M5
and unzipping M6 to the same directory. Now, when my app references a
logger that previously worked, I am getting an error stating that the
variable logger is undefined. I can't believe the upgrade really broke
logging, but did I do something wrong with the upgrade that is causing
this issue?
changing the property from type to inject seems to have done the trick
(i've tested only one class, thus far). the coldbox documentation does
not even list inject as an attribute, and all the samples use type.
so, my question now is, should all injected properties be changed from
the type attribute to the inject attribute?
for others coming to this post, i changed the properties to the
following:
<cfproperty name="logBox" inject="logbox" />
<cfproperty name="logger"
inject="logbox:logger:owners.handlers.Main" />