Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cflog & fix server log level

New Here ,
Nov 28, 2008 Nov 28, 2008
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.
TOPICS
Getting started
1.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 30, 2008 Nov 30, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 02, 2008 Dec 02, 2008
Yoann - there is indeed a function for determining if debug is on: IsDebugMode()
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 15, 2008 Dec 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)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Dec 16, 2008 Dec 16, 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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 17, 2008 Dec 17, 2008
LATEST
Tank you!

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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources