Changeset 2005

Show
Ignore:
Timestamp:
02/05/09 00:30:52 (4 years ago)
Author:
lmajano
Message:

Ticket #689 solidification and closing.

Location:
coldbox/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • coldbox/trunk/ApplicationTemplate/config/coldbox.xml.cfm

    r2001 r2005  
    3636                <!--The absolute or relative path to where you want to store your log files for this application--> 
    3737                <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                 
    3845                <!--Default Event to run if no event is set or passed. Usually the event to be fired first (NOTE: use event handler syntax)--> 
    3946                <Setting name="DefaultEvent"                            value="general.index"/> 
     
    7683                <!-- Declare the external models base invocation path, if used. You have to use dot notation.Example: mymapping.mymodels        --> 
    7784                <Setting name="ModelsExternalLocation"          value="" /> 
     85                <!-- Caching of model objects via model integration  --> 
     86                <Setting name="ModelsObjectCaching"             value="true" /> 
    7887                 
    7988                <!-- Uncomment More Model Integration Settings: 
     
    8493                --> 
    8594                 
    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" /> 
    9095                <!--Flag to cache handlers. Default if left blank is true. --> 
    9196                <Setting name="HandlerCaching"                          value="false"/> 
  • coldbox/trunk/system/config/config.xsd

    r1999 r2005  
    4646                                                                        <xs:enumeration value="DebugMode"/>              
    4747                                                                        <xs:enumeration value="DebugPassword"/> 
    48                                                                         <xs:enumeration value="DefaultEvent"/>                                                                   
     48                                                                        <xs:enumeration value="DefaultEvent"/>   
     49                                                                        <xs:enumeration value="DefaultLogLevel"/> 
    4950                                                                        <xs:enumeration value="EventName"/> 
    5051                                                                        <xs:enumeration value="ExceptionHandler" /> 
     
    6364                                                                        <xs:enumeration value="IOCObjectCaching" /> 
    6465                                                                        <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" /> 
    6572                                                                        <xs:enumeration value="MyPluginsLocation" /> 
    6673                                                                        <xs:enumeration value="onInvalidEvent"/>         
     
    7481                                                                        <xs:enumeration value="SessionEndHandler"/>                                              
    7582                                                                        <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" />                                                                                                 
    8384                                                                </xs:restriction> 
    8485                                                        </xs:simpleType> 
  • coldbox/trunk/system/config/settings.xml

    r1999 r2005  
    1010        <Setting name="Description" value="This is the ColdBox ColdFusion Framework for web applications."/> 
    1111        <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"/> 
    1315        <Setting name="FrameworkForums" value="http://forums.coldboxframework.com"/> 
    1416        <Setting name="FrameworkAPI" value="http://www.coldboxframework.com/api"/> 
    1517        <Setting name="FrameworkTrac" value="http://ortus.svnrepository.com/coldbox/"/> 
    1618        <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.--> 
    1821        <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 --> 
    2424        <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"/> 
    2525        <Setting name="DefaultFileCharacterSet" value="iso-8859-1"/> 
    26         <!--Log Default Directory Name--> 
     26         
     27                <!--Logging Settings--> 
     28        <Setting name="LogFileEncoding" value="ISO-8859-1"/> 
    2729        <Setting name="DefaultLogDirectory" value="logs"/> 
     30                <Setting name="DefaultLogLevel" value="4"/> 
     31                <Setting name="LogFileMaxSize" value="5000"/> 
     32        <Setting name="LogFileMaxArchives" value="5"/> 
     33         
    2834                <!--Default Event Name --> 
    2935                <Setting name="EventName" value="event"/> 
  • coldbox/trunk/system/plugins/XMLParser.cfc

    r1999 r2005  
    413413                        //Setup the ExpandedColdboxLogsLocation setting 
    414414                        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                         
    416420                        //Check For Owner Email or Throw 
    417421                        if ( not StructKeyExists(ConfigStruct, "OwnerEmail") ) 
  • coldbox/trunk/system/plugins/logger.cfc

    r1989 r2005  
    5555                        /* Available valid severities */ 
    5656                        instance.validSeverities = "information|fatal|warning|error|debug"; 
     57                         
    5758                        /* Log Levels */ 
    5859                        instance.logLevels = structnew(); 
     
    6263                        instance.logLevels["error"] = 1; 
    6364                        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                         
    7069                        /* Lock Name */ 
    7170                        instance.lockName = getController().getAppHash() & "_LOGGER_OPERATION";