<?php
// (c) Copyright 2002-2010 by authors of the Tiki Wiki/CMS/Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id: log.php 28756 2010-08-29 23:30:13Z marclaporte $

function prefs_log_list() {
	return array(
		'log_mail' => array(
			'name' => tra('Log mail in Tiki logs'),
			'description' => tra('Log mail in Tiki logs'),
			'type' => 'flag',
			'help' => 'System+Log',
		),
		'log_tpl' => array(
			'name' => tra('Smarty Template usage indicator'),
			'description' => tra('Add HTML comment at start and end of each Smarty template (TPL)'),
			'hint' => tra('Use only for development, not in production because these warnings are added to emails as well, and visible to the users'),
			'warning' => tra('You need to clear your Tiki template cache for this change to take effect'),
			'type' => 'flag',
		),
		'log_sql' => array(
			'name' => tra('Log SQL'),
			'description' => tra('Log SQL queries'),
			'type' => 'flag',
		),
		'log_sql_perf_min' => array(
			'name' => tra('Log queries using more than (seconds)'),
			'description' => tra('This may impact performance'),
			'type' => 'text',
			'size' => 5,
			'dependencies' => array(
				'log_sql',
			),
		),
	);
}
