Interface for debugging, tracing and profiling.
| Methods | |
|---|---|
|
public
|
Clears the specified log file. |
|
public
|
Clears all log files. |
|
public
|
Logs a message to a standard debug output. |
|
public
|
Logs a message to a standard profiling output and shows the time elapsed since the last call startProfilePoint or fixProfilePoint. |
|
public
|
Initializes the debug profiler with parameters. |
|
public
|
Logs a message to a standard profiling output and stores the current time. |
Clears the specified log file.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $file_name | by value | string |
The target file name. |
Clears all log files.
Logs a message to a standard debug output.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $message | by value | string |
Message to be logged. |
|
| $write_call_stack | by value | bool | false |
Flag that defines where the call stack should be written. |
| $file_name | by value | string | "debug.log" |
The target file name. |
It might throw an exception in the case of any errors.
Logs a message to a standard profiling output and shows the time elapsed since the last call startProfilePoint or fixProfilePoint.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $message | by value | string |
Message to be logged. |
It might throw an exception in the case of any errors.
Initializes the debug profiler with parameters.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $parameters | by value | array |
The parameters may vary for each debug profiler. |
It might throw an exception in the case of any system errors.
Logs a message to a standard profiling output and stores the current time.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $message | by value | string |
Message to be logged. |
It might throw an exception in the case of any errors.