Changeset 2005
- Timestamp:
- 02/05/09 00:30:52 (4 years ago)
- Location:
- coldbox/trunk
- Files:
-
- 5 modified
-
ApplicationTemplate/config/coldbox.xml.cfm (modified) (3 diffs)
-
system/config/config.xsd (modified) (3 diffs)
-
system/config/settings.xml (modified) (1 diff)
-
system/plugins/XMLParser.cfc (modified) (1 diff)
-
system/plugins/logger.cfc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
coldbox/trunk/ApplicationTemplate/config/coldbox.xml.cfm
r2001 r2005 36 36 <!--The absolute or relative path to where you want to store your log files for this application--> 37 37 <Setting name="ColdboxLogsLocation" value="logs" /> 38 39 <!-- 40 The default logging level to use. Defaults to all = 4 valid numbers are 0-4 41 0-fatal,1-error,2-warning,3-information,4-debug 42 <Setting name="DefaultLogLevel" value="4" /> 43 --> 44 38 45 <!--Default Event to run if no event is set or passed. Usually the event to be fired first (NOTE: use event handler syntax)--> 39 46 <Setting name="DefaultEvent" value="general.index"/> … … 76 83 <!-- Declare the external models base invocation path, if used. You have to use dot notation.Example: mymapping.mymodels --> 77 84 <Setting name="ModelsExternalLocation" value="" /> 85 <!-- Caching of model objects via model integration --> 86 <Setting name="ModelsObjectCaching" value="true" /> 78 87 79 88 <!-- Uncomment More Model Integration Settings: … … 84 93 --> 85 94 86 <!-- Caching of model objects via model integration -->87 <Setting name="ModelsObjectCaching" value="true" />88 <!-- Caching of model objects via model integration -->89 <Setting name="ModelsObjectCaching" value="true" />90 95 <!--Flag to cache handlers. Default if left blank is true. --> 91 96 <Setting name="HandlerCaching" value="false"/> -
coldbox/trunk/system/config/config.xsd
r1999 r2005 46 46 <xs:enumeration value="DebugMode"/> 47 47 <xs:enumeration value="DebugPassword"/> 48 <xs:enumeration value="DefaultEvent"/> 48 <xs:enumeration value="DefaultEvent"/> 49 <xs:enumeration value="DefaultLogLevel"/> 49 50 <xs:enumeration value="EventName"/> 50 51 <xs:enumeration value="ExceptionHandler" /> … … 63 64 <xs:enumeration value="IOCObjectCaching" /> 64 65 <xs:enumeration value="MessageboxStyleOverride" /> 66 <xs:enumeration value="ModelsExternalLocation" /> 67 <xs:enumeration value="ModelsObjectCaching" /> 68 <xs:enumeration value="ModelsSetterInjection" /> 69 <xs:enumeration value="ModelsDebugMode" /> 70 <xs:enumeration value="ModelsStopRecursion" /> 71 <xs:enumeration value="ModelsDICompleteUDF" /> 65 72 <xs:enumeration value="MyPluginsLocation" /> 66 73 <xs:enumeration value="onInvalidEvent"/> … … 74 81 <xs:enumeration value="SessionEndHandler"/> 75 82 <xs:enumeration value="UDFLibraryFile"/> 76 <xs:enumeration value="ViewsExternalLocation" /> 77 <xs:enumeration value="ModelsExternalLocation" /> 78 <xs:enumeration value="ModelsObjectCaching" /> 79 <xs:enumeration value="ModelsSetterInjection" /> 80 <xs:enumeration value="ModelsDebugMode" /> 81 <xs:enumeration value="ModelsStopRecursion" /> 82 <xs:enumeration value="ModelsDICompleteUDF" /> 83 <xs:enumeration value="ViewsExternalLocation" /> 83 84 </xs:restriction> 84 85 </xs:simpleType> -
coldbox/trunk/system/config/settings.xml
r1999 r2005 10 10 <Setting name="Description" value="This is the ColdBox ColdFusion Framework for web applications."/> 11 11 <Setting name="ModifyLogLocation" value="readme.txt"/> 12 <Setting name="FrameworkBlog" value="http://blog.coldboxframework.com"/> 12 13 <!-- Metadata --> 14 <Setting name="FrameworkBlog" value="http://blog.coldboxframework.com"/> 13 15 <Setting name="FrameworkForums" value="http://forums.coldboxframework.com"/> 14 16 <Setting name="FrameworkAPI" value="http://www.coldboxframework.com/api"/> 15 17 <Setting name="FrameworkTrac" value="http://ortus.svnrepository.com/coldbox/"/> 16 18 <Setting name="FrameworkEclipseUpdateSite" value="http://www.coldboxframework.com/distribution/eclipse"/> 17 <!--AvailableLogFileEncodings:US-ASCII, ISO-8859-1, UTF-8, UTF-16BE, UTF-16LE, UTF-16.--> 19 20 <!--AvailableLogFileEncodings:US-ASCII, ISO-8859-1, UTF-8, UTF-16BE, UTF-16LE, UTF-16.--> 18 21 <Setting name="AvailableLogFileEncodings" value="US-ASCII,ISO-8859-1,UTF-8,UTF-16BE,UTF-16LE,UTF-16"/> 19 <Setting name="LogFileEncoding" value="ISO-8859-1"/> 20 <!--LogFile's Max Size in KBytes --> 21 <Setting name="LogFileMaxSize" value="5000"/> 22 <Setting name="LogFileMaxArchives" value="5"/> 23 <!--Available CF Character Sets For File Operations --> 22 23 <!--Available CF Character Sets For File Operations --> 24 24 <Setting name="AvailableCFCharacterSets" value="utf-8,iso-8859-1,windows-1252,us-ascii,shift_jis,iso-2022-jp,euc-jp,euc-kr,big5,euc-cn,utf-16"/> 25 25 <Setting name="DefaultFileCharacterSet" value="iso-8859-1"/> 26 <!--Log Default Directory Name--> 26 27 <!--Logging Settings--> 28 <Setting name="LogFileEncoding" value="ISO-8859-1"/> 27 29 <Setting name="DefaultLogDirectory" value="logs"/> 30 <Setting name="DefaultLogLevel" value="4"/> 31 <Setting name="LogFileMaxSize" value="5000"/> 32 <Setting name="LogFileMaxArchives" value="5"/> 33 28 34 <!--Default Event Name --> 29 35 <Setting name="EventName" value="event"/> -
coldbox/trunk/system/plugins/XMLParser.cfc
r1999 r2005 413 413 //Setup the ExpandedColdboxLogsLocation setting 414 414 ConfigStruct["ExpandedColdboxLogsLocation"] = ""; 415 415 416 //Default Log Level 417 if ( NOT structKeyExists(ConfigStruct, "DefaultLogLevel") OR NOT isNumeric(ConfigStruct["DefaultLogLevel"])) 418 ConfigStruct["DefaultLogLevel"] = fwSettingsStruct["DefaultLogLevel"]; 419 416 420 //Check For Owner Email or Throw 417 421 if ( not StructKeyExists(ConfigStruct, "OwnerEmail") ) -
coldbox/trunk/system/plugins/logger.cfc
r1989 r2005 55 55 /* Available valid severities */ 56 56 instance.validSeverities = "information|fatal|warning|error|debug"; 57 57 58 /* Log Levels */ 58 59 instance.logLevels = structnew(); … … 62 63 instance.logLevels["error"] = 1; 63 64 instance.logLevels["fatal"] = 0; 64 /* Log Level setup, init it to 4 = all levels or highest level */ 65 setLogLevel(4); 66 /* Check for override */ 67 if( settingExists("logger_loglevel") ){ 68 setLogLevel(getSetting("logger_logLevel")); 69 } 65 66 /* Log Level setup, init it to fw default = all levels or highest level */ 67 setLogLevel(getSetting("DefaultLogLevel")); 68 70 69 /* Lock Name */ 71 70 instance.lockName = getController().getAppHash() & "_LOGGER_OPERATION";
