summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected
diff options
context:
space:
mode:
authorwei <>2006-01-04 08:09:58 +0000
committerwei <>2006-01-04 08:09:58 +0000
commit0ebae0856a5ed24bcc1b01d13d8715288f39a08d (patch)
tree2341cbc2191bac37927720f5d7cf35866f95246b /demos/quickstart/protected
parentd1384deb9b3ac872defd08fd01fbf8cf11442b45 (diff)
added logger module
Diffstat (limited to 'demos/quickstart/protected')
-rw-r--r--demos/quickstart/protected/application.xml11
-rw-r--r--demos/quickstart/protected/logs/logger.xml9
2 files changed, 20 insertions, 0 deletions
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>