PHP Class SimpleSAML\Logger\FileLoggingHandler

Author: Lasse Birnbaum Jensen, SDU.
Author: Andreas Åkre Solberg, UNINETT AS. ([email protected])
Inheritance: implements SimpleSAML\Logger\LoggingHandlerInterface
Show file Open project: simplesamlphp/simplesamlphp

Protected Properties

Property Type Description
$format
$logFile null | string A string with the path to the file where we should log our messages.
$processname

Public Methods

Method Description
__construct ( SimpleSAML_Configuration $config ) Build a new logging handler based on files.
log ( integer $level, string $string ) Log a message to the log file.
setLogFormat ( string $format ) Set the format desired for the logs.

Method Details

__construct() public method

Build a new logging handler based on files.
public __construct ( SimpleSAML_Configuration $config )
$config SimpleSAML_Configuration

log() public method

Log a message to the log file.
public log ( integer $level, string $string )
$level integer The log level.
$string string The formatted message to log.

setLogFormat() public method

Set the format desired for the logs.
public setLogFormat ( string $format )
$format string The format used for logs.

Property Details

$format protected property

protected $format

$logFile protected property

A string with the path to the file where we should log our messages.
protected null|string $logFile
return null | string

$processname protected property

protected $processname