CMS  Version 3.9
DebugManager Class Reference

Public Member Functions

 DebugManager ()
 

Static Public Member Functions

static setDefaults ()
 

Detailed Description

Definition at line 39 of file debug_manager.inc.

Member Function Documentation

◆ DebugManager()

DebugManager::DebugManager ( )

Definition at line 41 of file debug_manager.inc.

42  {
43 
44  }

◆ setDefaults()

static DebugManager::setDefaults ( )
static

Definition at line 46 of file debug_manager.inc.

47  {
48  trace("DebugManager::setDefaults", 3);
49 
50  global $config;
51 
52  preg_match_all("/([\\w\\d_]+)\.?([^}]*)/", $config["http_host"], $matches, PREG_SET_ORDER);
53  if(count($matches) > 0)
54  {
55  $matches = $matches[0];
56  if(count($matches) > 1)
57  {
58  $path = $matches[1];
59  }
60  $tracePath = "/share/". $path . "_trace.log";
61  }
62 
63  Settings::setDefaultValue("debug", "trace_path", $tracePath, "String", "File path to trace output log", "Trace File", null, 1);
64  Settings::setDefaultValue("debug", "trace_level", 3, "Number", "Trace Level for Fakoli core code. Lowest to output only the most serious errors; highest for all", "Trace Levels", "1\n2\n3\n4\n5", 1);
65  Settings::setDefaultValue("debug", "trace_detail", "TraceDetailHigh", "String", "The level of detail to be output", "Trace File", "TraceDetailFull\nTraceDetailHigh\nTraceDetailMedium\nTraceDetailNormal", 2);
66  Settings::setDefaultValue("debug", "application_trace_level", 3, "Number", "Trace Level for application code (component pages, handlers, modules).Lowest to output only the most serious errors; highest for all", "Trace Levels", "1\n2\n3\n4\n5", 2);
67  Settings::setDefaultValue("debug", "scheduled_task_trace_level", 3, "Number", "Trace Level for scheduled task workers", "Trace Levels", "1\n2\n3\n4\n5", 3 );
68  Settings::setDefaultValue("debug", "enable_trace_file_downloads", false, Boolean, "Enables remote access for trace files. Leave this disabled for production sites, and only enable if you need to gain access to the trace log but do not have access to SSH", "Trace File", null, 3);
69  }
if(! $page) $path
Definition: page.inc:57
static setDefaultValue($component, $name, $value, $field_type="String", $annotation="", $category="", $options="", $weight=0)
Sets the default value of the given component setting.
Definition: settings.inc:174
global $config
Definition: import.inc:4

The documentation for this class was generated from the following file: