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

18 lines
617 B
Plaintext

<cfcomponent extends="taffy.core.api">
<cfscript>
this.name = hash(getCurrentTemplatePath());
variables.framework = {};
variables.framework.exceptionLogAdapter = "taffy.bonus.LogToEmail";
variables.framework.exceptionLogAdapterConfig = StructNew();
variables.framework.exceptionLogAdapterConfig.emailFrom = "api-error@yourdomain.com";
variables.framework.exceptionLogAdapterConfig.emailTo = "you@yourdomain.com";
variables.framework.exceptionLogAdapterConfig.emailSubj = "Exception Trapped in API";
variables.framework.exceptionLogAdapterConfig.emailType = "html";
</cfscript>
</cfcomponent>