PHP 클래스 Gpf_Log_Logger

상속: extends Gpf_Object
파일 보기 프로젝트 열기: fubralimited/php-oara 1 사용 예제들

공개 메소드들

메소드 설명
add ( $type, $logLevel ) : Gpf_Log_LoggerBase attachs new log system
addLogger ( Gpf_Log_LoggerBase $logger, integer $logLevel ) : Gpf_Log_LoggerBase
checkLoggerTypeExists ( unknown_type $type ) : unknown Checks if logger with te specified type was already initialized
critical ( string $message, string $logGroup = null ) logs critical error message
debug ( string $message, string $logGroup = null ) logs debug message
disableType ( $type )
enableAllTypes ( )
enableType ( $type )
error ( string $message, string $logGroup = null ) logs error message
getCustomParameter ( string $name ) : string returns custom parameter
getGroup ( )
getInstance ( string $instanceName = '_' ) : Gpf_Log_Logger returns instance of logger class.
info ( string $message, string $logGroup = null ) logs info message
isLogToDisplay ( ) : boolean returns true if debugging writes log to display
isLoggerInsert ( $sqlString )
log ( string $message, string $logLevel, string $logGroup = null ) logs message
removeAll ( )
setCustomParameter ( string $name, string $value ) function sets custom parameter for the logger
setGroup ( $group = null )
setType ( $type )
warning ( string $message, string $logGroup = null ) logs warning message

비공개 메소드들

메소드 설명
create ( $type ) : Gpf_Log_LoggerBase
findCallingFile ( $calls, $functionName )
findFileByCallingMethod ( $calls )
findFileBySqlBenchmark ( )
findLatestObjectBeforeString ( $text )
findLogFile ( )
getObjectVariables ( $object )
sqlBenchmarkFound ( $calls )

메소드 상세

add() 공개 메소드

attachs new log system
public add ( $type, $logLevel ) : Gpf_Log_LoggerBase
리턴 Gpf_Log_LoggerBase

addLogger() 공개 메소드

public addLogger ( Gpf_Log_LoggerBase $logger, integer $logLevel ) : Gpf_Log_LoggerBase
$logger Gpf_Log_LoggerBase
$logLevel integer
리턴 Gpf_Log_LoggerBase

checkLoggerTypeExists() 공개 메소드

Checks if logger with te specified type was already initialized
public checkLoggerTypeExists ( unknown_type $type ) : unknown
$type unknown_type
리턴 unknown

critical() 공개 메소드

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

debug() 공개 메소드

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

disableType() 공개 메소드

public disableType ( $type )

enableAllTypes() 공개 메소드

public enableAllTypes ( )

enableType() 공개 메소드

public enableType ( $type )

error() 공개 메소드

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

getCustomParameter() 공개 메소드

returns custom parameter
public getCustomParameter ( string $name ) : string
$name string
리턴 string

getGroup() 공개 메소드

public getGroup ( )

getInstance() 공개 정적인 메소드

You can add instance name, if you want to have multiple independent instances of logger
public static getInstance ( string $instanceName = '_' ) : Gpf_Log_Logger
$instanceName string
리턴 Gpf_Log_Logger

info() 공개 메소드

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

isLogToDisplay() 공개 메소드

returns true if debugging writes log to display
public isLogToDisplay ( ) : boolean
리턴 boolean

isLoggerInsert() 공개 정적인 메소드

public static isLoggerInsert ( $sqlString )

log() 공개 메소드

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

removeAll() 공개 메소드

public removeAll ( )

setCustomParameter() 공개 메소드

function sets custom parameter for the logger
public setCustomParameter ( string $name, string $value )
$name string
$value string

setGroup() 공개 메소드

public setGroup ( $group = null )

setType() 공개 메소드

public setType ( $type )

warning() 공개 메소드

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