Jeff Stevens
03/14/2023, 7:15 PMproperty name="logger" inject="logbox:root"
However, I don't believe I have access to injection syntax like this outside of my models or handlers folders.Patrick
03/14/2023, 7:25 PMmapDirectory()
so it can pick upPatrick
03/14/2023, 7:25 PMPatrick
03/14/2023, 7:25 PMJeff Stevens
03/14/2023, 7:27 PMJeff Stevens
03/14/2023, 8:09 PMmapDirectory()
function so it can pick up the desired directory?Patrick
03/14/2023, 8:10 PMconfig/wirebox.cfc
file in the coldbox app,Jeff Stevens
03/14/2023, 8:11 PMPatrick
03/14/2023, 8:16 PMJeff Stevens
03/14/2023, 8:58 PMproperty name="logger inject="logbox:logger"
.
.
.
logger.warn("I am a test message!")
Patrick
03/14/2023, 9:53 PMJeff Stevens
03/15/2023, 12:36 PMExpression: Variable LOGGER is undefined.
[{"RAW_TRACE":"\tat cfrecordFormSubmission2ecfc699891102$funcRECORDFORMSUBMISSION.runFunction(C:\\Users\\jsteve\\OneDrive - Loeb Electric\\Documents\\GitHub\\custom-form-app\\includes\\ajaxColdfusion\\fillout\\recordFormSubmission.cfc:157)","LINE":157,"COLUMN":0,"TEMPLATE":"C:\\Users\\jsteve\\OneDrive - Loeb Electric\\Documents\\GitHub\\custom-form-app\\includes\\ajaxColdfusion\\fillout\\recordFormSubmission.cfc","ID":"??","TYPE":"CFML"}]
It looks like this in the file that triggers the error:
component
{
property name="logger" inject="logbox:root";
.
.
.
logger.error("Test error message!");
}
So I'm thinking that the logger object isn't being injected.bdw429s
03/15/2023, 3:31 PMbdw429s
03/15/2023, 3:31 PMJeff Stevens
03/15/2023, 3:32 PMbdw429s
03/15/2023, 3:32 PMbdw429s
03/15/2023, 3:32 PMbdw429s
03/15/2023, 3:32 PMbdw429s
03/15/2023, 3:32 PMbdw429s
03/15/2023, 3:33 PMJeff Stevens
03/15/2023, 3:44 PM