4 include_once
'./Services/Logging/classes/class.ilLoggingDBSettings.php';
5 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
24 public function __construct($a_parent_obj, $a_parent_cmd =
"")
26 $this->
setId(
'il_log_component');
27 parent::__construct($a_parent_obj, $a_parent_cmd);
36 $this->editable = $a_status;
55 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
59 $this->
setRowTemplate(
'tpl.log_component_row.html',
'Services/Logging');
60 $this->
addColumn($this->lng->txt(
'log_component_col_component'),
'component_sortable');
61 $this->
addColumn($this->lng->txt(
'log_component_col_level'),
'level');
67 $this->
addCommandButton(
'resetComponentLevels', $this->lng->txt(
'log_component_btn_reset'));
88 include_once
'./Services/Logging/classes/class.ilLogComponentLevels.php';
95 foreach ($components as $component) {
96 $row[
'id'] = $component->getComponentId();
98 if ($component->getComponentId() ==
'log_root') {
99 $row[
'component'] =
'Root';
100 $row[
'component_sortable'] =
'_' .
$row[
'component'];
102 include_once
'./Services/Component/classes/class.ilComponent.php';
104 $row[
'component_sortable'] = $row[
'component'];
108 $row[
'level'] = (int) $component->getLevel();
126 $this->tpl->setVariable(
'CNAME', $a_set[
'component']);
129 if ($a_set[
'id'] ==
'log_root') {
130 $this->tpl->setVariable(
'TXT_DESC',
$GLOBALS[
'lng']->txt(
'log_component_root_desc'));
135 $default_option =
array( 0 =>
$GLOBALS[
'lng']->txt(
'default') .
" (" . $array_options[$default_option_value] .
")");
136 $array_options = $default_option + $array_options;
138 include_once
'./Services/Form/classes/class.ilSelectInputGUI.php';
140 $levels->setOptions($array_options);
141 $levels->setValue((
int) $a_set[
'level']);
143 $this->tpl->setVariable(
'C_SELECT_LEVEL', $levels->render());
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
setEditable($a_status)
Set ediatable (write permission granted)
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.
isEditable()
Check if ediatable (write permission granted)
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.
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.
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.
setLimit($a_limit=0, $a_default_limit=0)