aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/views/default
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-07-02 12:07:27 -0400
committercash <cash.costello@gmail.com>2011-07-02 12:07:27 -0400
commitc4a53af23533d44383a87b5180b15e1a01a0e18a (patch)
tree0072123e654c1c7886295e218f68be1403d1ea61 /mod/developers/views/default
parentae5ad0a65508725871159ffb6a068fcb2084aad7 (diff)
downloadelgg-c4a53af23533d44383a87b5180b15e1a01a0e18a.tar.gz
elgg-c4a53af23533d44383a87b5180b15e1a01a0e18a.tar.bz2
added logging to the web page footer
Diffstat (limited to 'mod/developers/views/default')
-rw-r--r--mod/developers/views/default/admin/developers/settings.php7
-rw-r--r--mod/developers/views/default/developers/css.php6
-rw-r--r--mod/developers/views/default/developers/log.php16
3 files changed, 29 insertions, 0 deletions
diff --git a/mod/developers/views/default/admin/developers/settings.php b/mod/developers/views/default/admin/developers/settings.php
index 705ad00c6..3843c2c30 100644
--- a/mod/developers/views/default/admin/developers/settings.php
+++ b/mod/developers/views/default/admin/developers/settings.php
@@ -8,6 +8,7 @@ $sections = array(
'view_path_cache' => 'checkbox',
'display_errors' => 'checkbox',
'debug_level' => 'pulldown',
+ 'screen_log' => 'checkbox',
);
$data = array(
@@ -39,6 +40,12 @@ $data = array(
'NOTICE' => elgg_echo('developers:debug:notice'),
),
),
+
+ 'screen_log' => array(
+ 'type' => 'checkbox',
+ 'value' => 1,
+ 'checked' => elgg_get_plugin_setting('screen_log', 'developers') == 1,
+ ),
);
$form_vars = array('id' => 'developer-settings-form');
diff --git a/mod/developers/views/default/developers/css.php b/mod/developers/views/default/developers/css.php
index 3aa226d0a..4690945a9 100644
--- a/mod/developers/views/default/developers/css.php
+++ b/mod/developers/views/default/developers/css.php
@@ -15,3 +15,9 @@
.elgg-page .jstree-default.jstree-focused {
background-color: transparent;
}
+.developers-log {
+ background-color: #EBF5FF;
+ border: 1px solid #999;
+ color: #666;
+ padding: 20px;
+}
diff --git a/mod/developers/views/default/developers/log.php b/mod/developers/views/default/developers/log.php
new file mode 100644
index 000000000..eca2b4b67
--- /dev/null
+++ b/mod/developers/views/default/developers/log.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * Logging information
+ */
+
+$cache = elgg_get_config('log_cache');
+$items = $cache->get();
+
+echo '<div class="developers-log">';
+foreach ($items as $item) {
+ echo '<pre>';
+ print_r($item);
+ echo '</pre>';
+}
+
+echo '</div>'; \ No newline at end of file