diff options
Diffstat (limited to 'demos/quickstart/protected')
-rw-r--r-- | demos/quickstart/protected/application.xml | 11 | ||||
-rw-r--r-- | demos/quickstart/protected/logs/logger.xml | 9 |
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>
|