/** * コンストラクタ * * @param Layout Layoutインスタンス * @param string $to メール宛先アドレス * @param string $subject メール件名 * @param string $from メール差出人アドレス * @access public * @since 2.0 */ function &SMTPAppender($layout, $to, $from = null, $subject = SMTP_APPENDER_SUBJECT) { parent::Appender($layout); $this->to = $to; $this->subject = $subject; $this->from = $from; }
/** * Create a new FileAppender instance. * * <br/><br/> * * Conversion characters: * * <ul> * <li><b>%C{constant}</b> - the value of a PHP constant</li> * <li><b>%d{format}</b> - a date (uses date() format)</li> * </ul> * * @param Layout A Layout instance. * @param string An absolute file-system path to the log file. * @param bool Whether or not the file pointer should be opened in * appending mode (if false, all data is truncated). * * @access public * @since 2.0 */ function FileAppender($layout, $file, $append = TRUE) { parent::Appender($layout); $this->append = $append; $this->file = $file; $this->pattern =& new ConversionPattern($file); $this->openFP(); }
/** * Create a new FileAppender instance. * * @param Layout A Layout instance. * * @access public * @since 1.0 */ function StdoutAppender($layout, $properties) { parent::Appender($layout, $properties); }
/** * Create a new FileAppender instance. * * @param Layout A Layout instance. * * @access public * @since 2.0 */ function StdoutAppender($layout) { parent::Appender($layout); }
/** * Create a new qFileAppender instance. * * * @param Layout A Layout instance. * @param properties An associative array with properties that might be needed by this * appender * @access public * @since 1.0 * @see qAppender */ function FileAppender($layout, $properties) { parent::Appender($layout, $properties); $this->file = $properties["file"]; $this->openFP(); }