Files
svc-api-x/v1/taffy/bonus/LogToHoth.cfc
T
2024-10-23 11:17:42 +03:00

19 lines
618 B
Plaintext

<cfcomponent implements="taffy.bonus.ILogAdapter">
<cffunction name="init">
<cfargument name="config" />
<cfargument name="tracker" default="#createObject("component", "Hoth.HothTracker")#" />
<cfset variables.hothtracker = arguments.tracker />
<cfset variables.hothtracker.init(
createObject("component", arguments.config)
) />
<cfreturn this />
</cffunction>
<cffunction name="saveLog">
<cfargument name="exception" />
<cfset local.result = variables.HothTracker.track(arguments.exception) />
<cfheader name="X-HOTH-LOGGED-EXCEPTION" value="#local.result#" />
</cffunction>
</cfcomponent>