PHP Class Gpf_Log

Mostrar archivo Open project: fubralimited/php-oara Class Usage Examples

Public Methods

Method Description
addLogger ( string $type, string $logLevel ) : Gpf_Log_LoggerBase Attach new log system
critical ( string $message, string $logGroup = null ) logs critical error message
debug ( string $message, string $logGroup = null ) logs debug message
disableType ( $type )
enableAllTypes ( )
error ( string $message, string $logGroup = null ) logs error message
info ( string $message, string $logGroup = null ) logs info message
isLogToDisplay ( )
log ( string $message, string $logLevel, string $logGroup = null ) logs message
removeAll ( )
warning ( string $message, string $logGroup = null ) logs warning message

Private Methods

Method Description
__construct ( )
getLogger ( ) : Gpf_Log_Logger

Method Details

addLogger() public static method

Attach new log system
public static addLogger ( string $type, string $logLevel ) : Gpf_Log_LoggerBase
$type string Gpf_Log_LoggerDisplay::TYPE Gpf_Log_LoggerFile::TYPE Gpf_Log_LoggerDatabase::TYPE
$logLevel string Gpf_Log::CRITICAL Gpf_Log::ERROR Gpf_Log::WARNING Gpf_Log::INFO Gpf_Log::DEBUG
return Gpf_Log_LoggerBase

critical() public static method

logs critical error message
public static critical ( string $message, string $logGroup = null )
$message string
$logGroup string

debug() public static method

logs debug message
public static debug ( string $message, string $logGroup = null )
$message string
$logGroup string

disableType() public static method

public static disableType ( $type )

enableAllTypes() public static method

public static enableAllTypes ( )

error() public static method

logs error message
public static error ( string $message, string $logGroup = null )
$message string
$logGroup string

info() public static method

logs info message
public static info ( string $message, string $logGroup = null )
$message string
$logGroup string

isLogToDisplay() public static method

public static isLogToDisplay ( )

log() public static method

logs message
public static log ( string $message, string $logLevel, string $logGroup = null )
$message string
$logLevel string
$logGroup string

removeAll() public static method

public static removeAll ( )

warning() public static method

logs warning message
public static warning ( string $message, string $logGroup = null )
$message string
$logGroup string