diff options
author | wei <> | 2006-01-04 08:09:58 +0000 |
---|---|---|
committer | wei <> | 2006-01-04 08:09:58 +0000 |
commit | 0ebae0856a5ed24bcc1b01d13d8715288f39a08d (patch) | |
tree | 2341cbc2191bac37927720f5d7cf35866f95246b | |
parent | d1384deb9b3ac872defd08fd01fbf8cf11442b45 (diff) |
added logger module
-rw-r--r-- | .gitattributes | 1 | ||||
-rw-r--r-- | demos/quickstart/protected/application.xml | 11 | ||||
-rw-r--r-- | demos/quickstart/protected/logs/logger.xml | 9 |
3 files changed, 21 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes index 19fc74cd..985127e8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -31,6 +31,7 @@ demos/quickstart/protected/controls/SampleLayout.tpl -text demos/quickstart/protected/controls/TTextHighlighter.php -text demos/quickstart/protected/controls/TopicList.php -text demos/quickstart/protected/controls/TopicList.tpl -text +demos/quickstart/protected/logs/logger.xml -text demos/quickstart/protected/pages/Configurations/AppConfig.page -text demos/quickstart/protected/pages/Configurations/Overview.page -text demos/quickstart/protected/pages/Configurations/PageConfig.page -text diff --git a/demos/quickstart/protected/application.xml b/demos/quickstart/protected/application.xml index 0091ec5f..d456bd89 100644 --- a/demos/quickstart/protected/application.xml +++ b/demos/quickstart/protected/application.xml @@ -1,6 +1,17 @@ <?xml version="1.0" encoding="utf-8"?>
<application id="QuickStart" Mode="Debug">
+ <modules>
+ <module id="logger" class="System.Log.TEventLog" config="protected/logs/logger.xml" >
+<!-- Logging config can be here or in an external file specified by config=".." above -->
+<!--
+ <logger destination="file" directory="./protected/logs/" filename="prado.log">
+ <filter severity="INFO | NOTICE | WARNING | ERROR | FATAL" />
+ <filter severity="DEBUG" disabled="true" />
+ </logger>
+-->
+ </module>
+ </modules>
<paths>
<alias id="Controls" path="controls" />
<using namespace="Controls.*" />
diff --git a/demos/quickstart/protected/logs/logger.xml b/demos/quickstart/protected/logs/logger.xml new file mode 100644 index 00000000..c02e135a --- /dev/null +++ b/demos/quickstart/protected/logs/logger.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?>
+<config>
+ <loggers>
+ <logger destination="file" directory="./protected/logs/" filename="prado.log">
+ <filter severity="INFO | NOTICE | WARNING | ERROR | FATAL" />
+ <filter severity="DEBUG" disabled="true" />
+ </logger>
+ </loggers>
+</config>
|