I can't find information about how to set the log level on
cold fusion server config.
cflog tag enable a type of log, and I don't want to see debug
information on live servers.
Bonus question: do we have a way to put code execution for
debug only, such as "<cfif_debug_mode><cfoutput>#my
super debuginfo#</cfoutput></cfif_debug_mode>"
Thanks, I've found the link between the admin option "Enable
Request Debugging Output" and the "IsDebugMode()", very usefull.
But still nothing related to "type of log" and a
configuration parameter to set the severity level of log.
Type of log are defined as:
* Information
* Warning
* Error
* Fatal
I would like to set on prod server a log level to "Error"
only...
It seems that an alternative way would be to use "cftrace"
for debug info, that can be disable by admin parameter. (but as far
as the application already exist, it means re-writing some
APIs)
In the file neo-logging.xml, the tag:
<var
name='priority'><string>Warning</string></var>
Define the log level, can be set to one of the type of log
value (Information, Warning, Error, Fatal) and so filter the log
level (type) of the command cflog.