summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitattributes1
-rw-r--r--demos/quickstart/protected/application.xml11
-rw-r--r--demos/quickstart/protected/logs/logger.xml9
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>