...
As a core developer you can flag deprecated code by including this following snippet:
Code Block | ||
---|---|---|
| ||
<!--- @@deprecated: ../admin/navajo/edit.cfm should be replaced by call to ../conjuror/invocation.cfm ---> <cfif structkeyExists(application.log, "bDeprecated") AND application.log.bDeprecated> <cfset deprecatedMsg="../admin/navajo/edit.cfm should be replaced by call to ../conjuror/invocation.cfm" /> <cftrace type="warning" inline="false" text="#deprecatedMsg#" abort="false" /> <cflog file="deprecated" application="true" type="warning" text="Your message.#deprecatedMsg#" /> </cfif> |
The log message should specify what deprecated feature is being used and the alternative feature/function that should be used in its stead.