scriptlog:lib:core:logerror
This is an old revision of the document!
Table of Contents
LogError
Layer: Core · Source: lib/core/LogError.php:20 (lines 20–137)
class LogError
Error Handling and Logging
Docblock Metadata
^ Tag ^ Value ^ | ''@category'' | Core Class | | ''@author'' | M.Noermoehammad | | ''@license'' | MIT | | ''@version'' | 1.0 | | ''@since'' | Since Release 1.0 |
Inheritance
No parent, interface or trait. This is a root type.
Constants (0)
None.
Properties (1)
^ Visibility ^ Type ^ Name ^ Default ^ Line ^ | ''private static'' | ''static'' | ''$logFilePath'' | ''APP_ROOT . APP_PUBLIC . '/log/';'' | 22 |
Methods (7)
^ Visibility ^ Method ^ Summary ^ Line ^ | public static | ''logPath()'' | (undocumented) | 26 | | public static | ''customErrorMessage()'' | | 37 | | public static | ''exceptionHandler()'' | exceptionHandler | 84 | | public static | ''errorHandler()'' | errorHandler | 108 | | public static | ''newMessage()'' | | 121 | | public static | ''setStatusCode()'' | (undocumented) | 127 | | private static | ''getStatusCode()'' | (undocumented) | 133 |
logPath()
public static function logPath()
lines 26–29 (4)
Takes no parameters.
Returns: (none declared)
customErrorMessage()
public static function customErrorMessage($privilege = null)
lines 37–76 (40)
^ Parameter ^ Type ^ Default ^ Description ^ | ''$privilege'' | ''(untyped)'' | ''null'' | //none// |
Returns: (none declared)
exceptionHandler()
public static function exceptionHandler($e)
lines 84–94 (11)
exceptionHandler
^ Parameter ^ Type ^ Default ^ Description ^ | ''$e'' | ''(untyped)'' | //required// | //none// |
Returns: (none declared)
errorHandler()
public static function errorHandler($code, $description, $file = null, $line = null)
lines 108–111 (4)
errorHandler
^ Parameter ^ Type ^ Default ^ Description ^ | ''$code'' | ''(untyped)'' | //required// | //none// | | ''$description'' | ''(untyped)'' | //required// | //none// | | ''$file'' | ''(untyped)'' | ''null'' | //none// | | ''$line'' | ''(untyped)'' | ''null'' | //none// |
Returns: (none declared) — void|bool
newMessage()
public static function newMessage($exception)
lines 121–125 (5)
^ Parameter ^ Type ^ Default ^ Description ^ | ''$exception'' | ''(untyped)'' | //required// | //none// |
Returns: (none declared)
setStatusCode()
public static function setStatusCode($statusCode): int
lines 127–131 (5)
^ Parameter ^ Type ^ Default ^ Description ^ | ''$statusCode'' | ''(untyped)'' | //required// | //none// |
Returns: int
getStatusCode()
private static function getStatusCode()
lines 133–136 (4)
Takes no parameters.
Returns: (none declared)
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.
scriptlog/lib/core/logerror.1790413762.txt.gz · Last modified: by admin
