Created
February 16, 2011 14:31
-
-
Save mhenke/829456 to your computer and use it in GitHub Desktop.
hoth config files from github and sample code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| Aaron Greenlee | |
| http://aarongreenlee.com/ | |
| This work is licensed under a Creative Commons Attribution-Share-Alike 3.0 | |
| Unported License. | |
| // Original Info ----------------------------------------------------------- | |
| Author : Aaron Greenlee | |
| Created : 10/01/2010 | |
| Default configuration for Hoth. | |
| */ | |
| component | |
| implements='Hoth.object.iHothConfig' | |
| extends='Hoth.object.CoreConfig' | |
| accessors=true { | |
| /** What is the name of your application? */ | |
| property name='applicationName' default='HothDefaultConfig'; | |
| /** 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='false'; | |
| /** What address(es) should receive these e-mails? */ | |
| property name='EmailNewExceptionsTo' default='you@yourdomain.com'; | |
| /** What address would you like these emails sent from? */ | |
| property name='EmailNewExceptionsFrom' default='hoth@yourdomain.com'; | |
| /** Would you like the raw JSON attached to the e-mail? */ | |
| property name='EmailNewExceptionsFile' default='false'; | |
| // ------------------------------------------------------------------------------ | |
| public any function init() | |
| { | |
| return this; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 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 2'; | |
| /** 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='/your_mapping/hoth/cfmlClub'; | |
| // ------------------------------------------------------------------------------ | |
| /** 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/'); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
same code works for the config but github config doesn't