Seemingly daft question. How does one set the mini...
# adobe
a
Seemingly daft question. How does one set the minimum log level for a log in CF? EG: I have a log,
something.log
, and I want to set its log level to be "ERROR", so that any
writeLog
calls to it on a lower logging level don't log. All I can find is a global entry in `/opt/coldfusion/cfusion/lib/neo-logging.xml`:
Copy code
<var name='priority'><string>information</string></var>
However I don't see how to set that in the CFAdmin UI. But even then, I don't want the global setting, I want to set it on a specific log.
d
I used cflog which allows you to select the level of the log. It has always worked for me. https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-j-l/cflog.html
r
He's asking about something different.
writeLog
can specify the log level. My understanding of what Adam is after is a way to discard any log calls (via
writeLog
or
cflog
) that are below a specified threshold on a per log file basis.