PHP 클래스 SimpleSAML\Logger

저자: Lasse Birnbaum Jensen, SDU.
저자: Andreas Åkre Solberg, UNINETT AS. ([email protected])
저자: Jaime Pérez Crespo, UNINETT AS ([email protected])
파일 보기 프로젝트 열기: simplesamlphp/simplesamlphp 1 사용 예제들

공개 메소드들

메소드 설명
alert ( $string ) Log an alert.
critical ( $string ) Log a critical message.
debug ( $string ) Debug messages are very verbose, and will contain more information than what is necessary for a production system.
emergency ( $string ) Log an emergency message.
error ( $string ) Log an error.
flush ( ) Flush any pending log messages to the logging handler.
getCapturedLog ( ) Get the captured log.
info ( $string ) Info messages are a bit less verbose than debug messages. This is useful to trace a session.
isErrorMasked ( integer $errno ) : boolean Evaluate whether errors of a certain error level are masked or not.
maskErrors ( integer $mask ) Disable error reporting for the given log levels.
notice ( $string ) We reserve the notice level for statistics, so do not use this level for other kind of log messages.
popErrorMask ( ) Pop an error mask.
setCaptureLog ( $val = true ) Set the logger to capture logs.
setTrackId ( $trackId ) Set the track identifier to use in all logs.
stats ( $string ) Statistics.
warning ( $string ) Log a warning.

비공개 메소드들

메소드 설명
createLoggingHandler ( $handler = null )
defer ( integer $level, string $message, boolean $stats ) Defer a message for later logging.
log ( $level, $string, $statsLog = false )

메소드 상세

alert() 공개 정적인 메소드

Log an alert.
public static alert ( $string )

critical() 공개 정적인 메소드

Log a critical message.
public static critical ( $string )

debug() 공개 정적인 메소드

Debug messages are very verbose, and will contain more information than what is necessary for a production system.
public static debug ( $string )

emergency() 공개 정적인 메소드

Log an emergency message.
public static emergency ( $string )

error() 공개 정적인 메소드

Log an error.
public static error ( $string )

flush() 공개 정적인 메소드

This method is intended to be registered as a shutdown handler, so that any pending messages that weren't sent to the logging handler at that point, can still make it. It is therefore not intended to be called manually.
public static flush ( )

getCapturedLog() 공개 정적인 메소드

Get the captured log.
public static getCapturedLog ( )

info() 공개 정적인 메소드

Info messages are a bit less verbose than debug messages. This is useful to trace a session.
public static info ( $string )

isErrorMasked() 공개 정적인 메소드

Evaluate whether errors of a certain error level are masked or not.
public static isErrorMasked ( integer $errno ) : boolean
$errno integer The level of the error to check.
리턴 boolean True if the error is masked, false otherwise.

maskErrors() 공개 정적인 메소드

Every call to this function must be followed by a call to popErrorMask().
public static maskErrors ( integer $mask )
$mask integer The log levels that should be masked.

notice() 공개 정적인 메소드

We reserve the notice level for statistics, so do not use this level for other kind of log messages.
public static notice ( $string )

popErrorMask() 공개 정적인 메소드

This function restores the previous error mask.
public static popErrorMask ( )

setCaptureLog() 공개 정적인 메소드

Set the logger to capture logs.
public static setCaptureLog ( $val = true )

setTrackId() 공개 정적인 메소드

Set the track identifier to use in all logs.
public static setTrackId ( $trackId )
$trackId string The track identifier to use during this session.

stats() 공개 정적인 메소드

Statistics.
public static stats ( $string )

warning() 공개 정적인 메소드

Log a warning.
public static warning ( $string )