/** * Constructor. * * @param Doozr_Datetime_Service $datetime Datetime Service of Doozr * @param int $level Loglevel of the logging extending this class * @param string $fingerprint Fingerprint of the client * * @author Benjamin Carl <*****@*****.**> * * @return \Doozr_Logging_File */ public function __construct(Doozr_Datetime_Service $datetime, $level = null, $fingerprint = null) { // call parents constructor parent::__construct($datetime, $level, $fingerprint); // get registry $registry = Doozr_Registry::getInstance(); // store path-manager $this->setPath($registry->path); // set logfile-name (+path) $this->setLogfile($_SERVER['PHP_SELF']); // set filesystem service $this->setFilesystem(Doozr_Loader_Serviceloader::load('filesystem')); }
/** * Constructor. * * @param Doozr_Datetime_Service $datetime * @param int $level The loglevel of the logging extending this class * @param string $fingerprint The fingerprint of the client * * @internal param Doozr_Configuration $configuration The configuration instance * * @author Benjamin Carl <*****@*****.**> * @return \Doozr_Logging_Debugbar * @access public */ public function __construct(Doozr_Datetime_Service $datetime, $level = null, $fingerprint = null) { // Call parents constructor parent::__construct($datetime, $level, $fingerprint); }
/** * Constructor. * * @param Doozr_Datetime_Service $datetime Instance of Datetime-Service for date-operations * @param int|null $level The logging level | if not passed the max is set * @param string|null $fingerprint The fingerprint of the current client|will be * generated if not passed * * @author Benjamin Carl <*****@*****.**> * * @return \Doozr_Logging */ public function __construct(Doozr_Datetime_Service $datetime = null, $level = null, $fingerprint = null) { // Instantiate the SplObjectStorage $this->observer = new SplObjectStorage(); // and then call the original constructor parent::__construct($datetime, $level, $fingerprint); }