Skip to main content
Participant
Nov 28, 2008 1:40 PM UTC
Question

cflog & fix server log level

Hello,

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,
Yoann.
This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

cfjedimaster
Inspiring
Dec 2, 2008 10:21 PM UTC
Yoann - there is indeed a function for determining if debug is on: IsDebugMode()
Translate
Dec 15, 2008 4:28 PM UTC
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)
Translate
Inspiring
Dec 17, 2008 12:09 AM UTC
I have not used it myself, but you might look at neo-logging.xml and/or jrun.xml. There are few properties that look promising (priority, warningEnabled, infoEnabled, ...).
http://jochem.vandieten.net/2008/09/07/tuning-your-coldfusion-logging/
Translate
Dec 1, 2008 5:07 AM UTC
I think you want to go into the administrator screen and pick
Debugging & Logging then Debug Output Settings and uncheck a lot of things
Translate