4 include_once
'./Services/Logging/classes/class.ilLoggingDBSettings.php';
5 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
22 public function __construct($a_parent_obj, $a_parent_cmd =
"")
24 $this->
setId(
'il_log_component');
25 parent::__construct($a_parent_obj, $a_parent_cmd);
36 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
40 $this->
setRowTemplate(
'tpl.log_component_row.html',
'Services/Logging');
41 $this->
addColumn($this->lng->txt(
'log_component_col_component'),
'component_sortable');
42 $this->
addColumn($this->lng->txt(
'log_component_col_level'),
'level');
47 $this->
addCommandButton(
'resetComponentLevels', $this->lng->txt(
'log_component_btn_reset'));
68 include_once
'./Services/Logging/classes/class.ilLogComponentLevels.php';
75 foreach($components as $component)
77 $row[
'id'] = $component->getComponentId();
79 if($component->getComponentId() ==
'log_root')
81 $row[
'component'] =
'Root';
82 $row[
'component_sortable'] =
'_'.$row[
'component'];
86 include_once
'./Services/Component/classes/class.ilComponent.php';
88 $row[
'component_sortable'] = $row[
'component'];
92 $row[
'level'] = (int) $component->getLevel();
110 $this->tpl->setVariable(
'CNAME',$a_set[
'component']);
113 if($a_set[
'id'] ==
'log_root')
115 $this->tpl->setVariable(
'TXT_DESC',
$GLOBALS[
'lng']->txt(
'log_component_root_desc'));
120 $default_option =
array( 0 =>
$GLOBALS[
'lng']->txt(
'default').
" (".$array_options[$default_option_value].
")");
121 $array_options = $default_option + $array_options;
123 include_once
'./Services/Form/classes/class.ilSelectInputGUI.php';
125 $levels->setOptions($array_options);
126 $levels->setValue((
int) $a_set[
'level']);
128 $this->tpl->setVariable(
'C_SELECT_LEVEL',$levels->render());
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static getLevelOptions()
Get log level options.
getSettings()
Get settings.
static lookupComponentName($a_component_id)
lookup component name type $ilDB
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
static getInstance()
Get instance.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
static getLogger($a_component_id)
Get component logger.
__construct($a_parent_obj, $a_parent_cmd="")
setMaxCount($a_max_count)
set max.
Component logger with individual log levels by component id.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setLimit($a_limit=0, $a_default_limit=0)