Permalink
Browse files

Refactored tests/models/examples as I prepare for Hoth 2.0. Need to b…

…etter isolate Hoth's error reporting behavior from the other new features such as event monitoring.
  • Loading branch information...
1 parent 97908d4 commit e3084cc9b062b1d4dcb4163e7e11707f677535d9 @aarongreenlee committed Jan 24, 2012
Showing with 58 additions and 508 deletions.
  1. +0 −1 examples/CFWheels/Hoth/.gitignore
  2. +0 −9 examples/CFWheels/Hoth/ReadMe.txt
  3. +0 −1 examples/CFWheels/Hoth/db/.gitignore
  4. +0 −1 examples/CFWheels/Hoth/logs/.gitignore
  5. +0 −1 examples/CFWheels/Hoth/object/.gitignore
  6. +0 −1 examples/CFWheels/config/.gitignore
  7. +0 −68 examples/CFWheels/config/HothConfig.cfc
  8. +0 −1 examples/CFWheels/events/.gitignore
  9. +0 −19 examples/CFWheels/events/onerror.cfm
  10. +0 −14 examples/CFWheels/events/onrequeststart.cfm
  11. +0 −6 examples/CFWheels/views/hoth/error.cfm
  12. +0 −256 examples/CFWheels/views/hoth/report.cfm
  13. 0 examples/{ → ErrorTracking}/CFWheels/readme.txt
  14. 0 examples/{ → ErrorTracking}/ColdBox/HothReportEventHandler.cfc
  15. 0 examples/{ → ErrorTracking}/ColdBox/readme.txt
  16. 0 examples/{ → ErrorTracking}/ColdFusion/HothReportUI.cfc
  17. 0 examples/{ → ErrorTracking}/blogPost/ColdBox.txt
  18. 0 examples/{ → ErrorTracking}/blogPost/HothConfig.cfc
  19. 0 examples/{ → ErrorTracking}/blogPost/HothReporter.cfc
  20. 0 examples/{ → ErrorTracking}/blogPost/ImplementReportingWithColdBox.txt
  21. 0 examples/{ → ErrorTracking}/blogPost/RecomendedApplicationCFC.txt
  22. 0 examples/{ → ErrorTracking}/blogPost/SimpleHothIntegration.txt
  23. 0 examples/{ → ErrorTracking}/blogPost/TrappedErrors.txt
  24. +34 −0 examples/EventMessages/Application.cfc
  25. +0 −1 examples/Example_Logs/exceptions/00422207A2688146A6D66DDAA034AC2B8D9F2DEA.log
  26. +0 −1 examples/Example_Logs/exceptions/02E9D2BB4A77C0AA0EB521E376470603CEB6BC8B.log
  27. +0 −1 examples/Example_Logs/exceptions/049000E8B1A24DA94AD81BB289977551ECFA16FC.log
  28. +0 −5 examples/Example_Logs/incidents/00422207A2688146A6D66DDAA034AC2B8D9F2DEA.log
  29. +0 −1 examples/Example_Logs/incidents/02E9D2BB4A77C0AA0EB521E376470603CEB6BC8B.log
  30. +0 −1 examples/Example_Logs/incidents/049000E8B1A24DA94AD81BB289977551ECFA16FC.log
  31. +0 −11 examples/FarCry/farcryhoth/README
  32. +0 −29 examples/FarCry/farcryhoth/config/_serverSpecificVarsAfterInit.cfm
  33. +0 −10 examples/FarCry/farcryhoth/customadmin/farcryhoth.xml
  34. +0 −10 examples/FarCry/farcryhoth/customadmin/hoth.cfm
  35. +0 −10 examples/FarCry/farcryhoth/install/manifest.cfc
  36. +0 −1 examples/FarCry/farcryhoth/packages/custom/hoth/_readme.txt
  37. +0 −10 examples/FarCry/farcryhoth/packages/forms/configHoth.cfc
  38. +0 −1 examples/FarCry/farcryhoth/www/Application.cfc
  39. +0 −15 examples/FarCry/farcryhoth/www/facade/reporting.cfc
  40. +1 −0 examples/readme.txt
  41. +23 −23 extras/ColdBoxInterceptor.cfc
@@ -1 +0,0 @@
-#nothing here
@@ -1,9 +0,0 @@
-Place the Hoth files here.
-
-=== file/folder structure
--Hoth
-HothReporter.cfc
-HothTracker.cfc
---db folder
---logs folder
---objects folder
@@ -1 +0,0 @@
-#nothing here
@@ -1 +0,0 @@
-#nothing here
@@ -1 +0,0 @@
-#nothing here
@@ -1 +0,0 @@
-#nothing here
@@ -1,68 +0,0 @@
-/**
- * Copyright Aaron Greenlee
- *
- * <h4>Description</h4>
- * An example configuration object for your appication.
- * Customize this configuration object for your needs.
- *
- * Created
- * 2/9/2011 10:22:19 AM
- *
- * @author Aaron Greenlee
- * @version 1
- * @see N/A
- **/
-
-component
- implements = 'Hoth.object.iHothConfig'
- extends = 'Hoth.object.CoreConfig'
- accessors = true
- {
-
- /** What is the name of your application? */
- property
- name='applicationName'
- default='Amazing ColdFusion Club 3';
-
- /** How many seconds should we lock file operations?
- For most operations this is exclusive to a unique exception. */
- property
- name='timeToLock'
- default='1';
-
- /** Where would you like Hoth to save exception data?
- This folder should be empty. */
- property
- name='logPath'
- default='/Hoth/logs';
-
- // ------------------------------------------------------------------------------
- /** Would you like new exceptions to be emailed to you? */
- property
- name='EmailNewExceptions'
- default='true';
-
- /** What address(es) should receive these e-mails? */
- property
- name='EmailNewExceptionsTo'
- default='you@email.com;co-worker@email.com';
-
- /** What address would you like these emails sent from? */
- property
- name='EmailNewExceptionsFrom'
- default='you@email.com';
-
- /** Would you like the raw JSON attached to the e-mail? */
- property
- name='EmailNewExceptionsFile'
- default='true';
- // ------------------------------------------------------------------------------
-
- /**
- The mapping where you would like Hoth to write it's log files.
- Without this setting, Hoth will write log files to the same directory
- Hoth is located within. This is not recomended as your will have content
- mixed into your Hoth code.
- **/
- setGlobalDatabasePath(path='/logs/hoth/');
-}
@@ -1 +0,0 @@
-#nothing here
@@ -1,19 +0,0 @@
-<!--- Place HTML here that should be displayed when an error is encountered while running in "production" mode. --->
- <cfscript>
- // Create an instance of Hoth if one does not exist in the
- // application scope. Hoth should exist in the Application Scope
- // but, if something went wrong there we are ensured tracking.
- arguments.Except = arguments.exception;
- arguments.EventName = arguments.eventName;
- local.HothTracker = (structKeyExists(application, 'HothTracker'))
- ? application.HothTracker
- : new Hoth.HothTracker( new config.HothConfig() );
-
- local.HothTracker.track(Except);
- </cfscript>
-
-<h1>Error!</h1>
-<p>
- Sorry, that caused an unexpected error.<br />
- Please try again later.
-</p>
@@ -1,14 +0,0 @@
-<!--- Place code here that should be executed on the "onRequestStart" event. --->
-
- <cfscript>
- // Place Hoth into Application Memory.
- if (!structKeyExists(application, 'HothTracker'))
- {
- application.HothTracker =
- new Hoth.HothTracker( new config.HothConfig() );
- }
-
- // anything you need here...
-
- return true;
- </cfscript>
@@ -1,6 +0,0 @@
-<!---
-to generate hoth tracked error enviroment must be set to production in /config/environment.cfm
- --->
-
-<!--- cause an error by dividing by 0 --->
-<cfset error = 1/0 />
Oops, something went wrong.

0 comments on commit e3084cc

Please sign in to comment.