Is there a way Coldfusion can send all errors to a specific email? -
Is there a way Coldfusion can send all errors to a specific email? -
i have:
server details server product coldfusion version 9,0,1,274733 edition standard operating scheme windows server 2008 os version 6.0 adobe driver version 4.0 (build 0005) possible can receive errors happen on coldfusion specific email?
if don't want add together cferror every page can add together onerror method application.cfc function called whenever page has error.
<cffunction name="onerror"> <!--- onerror method gets 2 arguments: exception structure, identical cfcatch variable. name of application.cfc method, if any, in error happened. ---> <cfargument name="except" required="true"/> <cfargument type="string" name = "eventname" required="true"/> error handling goes here </cffunction> i saw had question worried mail service server not working. if worried not able receive emails errors can log them file.
<!--- log errors in application-specific log file. ---> <cflog file="filename" type="error" text="event name: #eventname#" > <cflog file="filename" type="error" text="message: #except.message#"> coldfusion coldfusion-9
Comments
Post a Comment