I've been happily using cflog for a couple weeks n...
# lucee
d
I've been happily using cflog for a couple weeks now to debug. However, this morning I am receiving this error when I try to log something: XNIO-1 task-1 ERROR Log4j API could not find a logging provider. Is there an application I should enable?
z
6.2.1?
d
Gosh, yes, I'm sorry. Yes it is
6.2.1.122
e
in your java int parms add this " -Dlog4j2.StatusLogger.level=TRACE"
d
Is that in box.json if I'm running out of CommandBox? Sorry for being thick, new environment for me.
z
Does it always fail even after a restart? Just a specific log statement?
d
I updated my server.json to have the args for the jvm. I restarted my server. I received this error after attempting a log: [INFO ] 2025-05-02T192722.689398900Z XNIO-1 task-1 ERROR Log4j API could not find a logging provider. [INFO ] 2025-05-02T192722.706400Z XNIO-1 task-1 INFO Using provider: Provider 'org.apache.logging.log4j.simple.internal.SimpleProvider' With this line of code: <cflog file="ClientLeadDemographics" text="Every 10 seconds" type="information">
z
You don't need those jvm args
What's the top of the stack trace look like? Down to the first cfc/cfml file mentioned? Plus Any caused by at the bottom