ColdBox Framework Forums Notification: Post to Logger plugin enhancement

Title: Logger plugin enhancement
Thread: Logger plugin enhancement
Forum: Enhancements
Conference: ColdBox
User: sparkpool Suggestion to improve the usefulness of the logger plugin:

- Add the
following simple method to the frameworkSupertype:
[code]
  <cffunction
name="getDump" hint="Returns an html cfdump of the passed var. Supports cfdump's
'label' and 'expand' arguments." output="false" returntype="string"
access="private">
    <cfargument name="var" type="any" required=true>
<cfargument name="label" type="string" default="">
    <cfargument name="expand"
type="boolean" default="1">
    <cfset var html = "">
    <cfsavecontent
variable="html"><cfdump var="#arguments.var#" label="#arguments.label#"
expand="#arguments.expand#"></cfsavecontent>
    <cfreturn html>
  </cffunction>
[/code]

- In the logger plugin's tracer method, add a new argument:
[code]
<cfargument name="dumpLabel" type="string" default="">
[/code]

- In that
same method, between lines 83 and 84, add this:
[code]
  if(not
IsSimpleValue(arguments.message))
    arguments.message =
getDump(arguments.message, arguments.dumpLabel);
[/code]

The net effect is
to allow complex values to be passed as the logger message, which then get
cfdumped in the logger output. I've found that very useful.

BTW, is there an
official way to extend the frameworkSupertype, making our own additions that
don't get lost when there's a new verions of ColdBox?
http://forums.coldboxframework.com/index.cfm?event=ehMessages.dspMessages&threadid=FC64BBA6-FF6E-E829-9A1BAF657F1F421E