Skip to main content
Participant
November 28, 2008
Question

cflog & fix server log level

  • November 28, 2008
  • 2 replies
  • 2000 views
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 has been closed for replies.

2 replies

cfjedimaster
Inspiring
December 2, 2008
Yoann - there is indeed a function for determining if debug is on: IsDebugMode()
December 15, 2008
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)
Inspiring
December 17, 2008
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/
December 1, 2008
I think you want to go into the administrator screen and pick
Debugging & Logging then Debug Output Settings and uncheck a lot of things