{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'configuration'} {/block} {block name="page-title"}{intl l='System Logs'}{/block} {block name="check-resource"}admin.configuration.variable{/block} {block name="check-access"}update{/block} {block name="main-content"}
{intl l="System Logs configuration"}
{form name='thelia.system-logs.configuration'}
{form_hidden_fields} {include file = "includes/inner-form-toolbar.html" hide_flags = true page_url = "{url path='/admin/configuration/system-logs'}" close_url = "{url path='/admin/configuration'}" }

{intl l='General configuration'}

{if $form_error}
{$form_error_message}
{/if}
{form_field field="level"}
{intl l='Messages which have a level greater or equal to the selected level will be added to the log destinations. '}
{/form_field} {form_field field='format'}
{intl l='Log lines header format. You may use the following variables: '}
  • #INDEX : {intl l='Sequential number of log line'}
  • #LEVEL : {intl l='Message level'}
  • #FILE : {intl l='Originating file name'}
  • #FUNCTION : {intl l='Originating function name '}
  • #LINE : {intl l='Originating file line number '}
  • #DATE : {intl l='date in yyyy-mm-dd format'}
  • #HOUR : {intl l='hour in hh:mm:ss format'}
{/form_field} {form_field field='show_redirections'}
{intl l='If yes, redirections through Redirect::exec() will be displayed as links'}
{/form_field} {form_field field='files'}
{intl l='Enter one or more file names without path separated by ";". Use "!" before a file name to exclude it. Use "*" to activate logs for all files.'}
{/form_field} {form_field field='ip_addresses'}
{intl l='Enter one or more IP V4 addresses separated by ";". Leave empty to display logs for all IP addresses'} {intl l='Your current IP address is %ip' ip={$ip_address}}
{/form_field}

{intl l='Destinations'}

{intl l='The destinations processes logs to display, store or send them. You can select and configure zero, one or more destinations below.'}
{foreach $destinations as $classname => $destination} {$active = in_array(get_class($destination), $active_destinations)}

{$destination->getTitle()}

{$destination->getDescription()}

{if count($destination->getConfigs()) > 0}
{foreach $destination->getConfigs() as $config}
{if $config->getType() == 2} {else if $config->getType() == 1} {/if} {$config->getLabel()}
{/foreach}
{/if}
{/foreach}
{/form}
{/block} {block name="javascript-initialization"} {/block} {block name="javascript-last-call"} {hook name="system.logs-js" location="system-logs-js" } {/block}