n2n Page Rocket 1 API

n2n\log4php\appender

­Appender­Syslog

AppenderSyslog extends LoggerAppender
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Property summary

Modifier and Type Property
protected string ident
protected string priority
protected string option
protected string facility
protected string overridePriority

Methods summary

Modifier and Type Method
public setIdent ( string ident )
public setPriority ( string priority )
public setFacility ( string facility )
public setOverridePriority ( string overridePriority )
public setOption ( string option )
public string getIdent ( )
public string getPriority ( )
public string getFacility ( )
public string getOverridePriority ( )
public string getOption ( )
public activateOptions ( )
public close ( )
public append ( LoggingEvent event )

Properties in detail

  • ident

    protected ­ ­ string ­ ident
    The ident string is added to each message. Typically the name of your application.
    var
    string
  • priority

    protected ­ ­ string ­ priority
    The syslog priority to use when overriding priority. This setting is required if overridePriority is set to true.
    var
    string
  • option

    protected ­ ­ string ­ option
    The option used when opening the syslog connection.
    var
    string
  • facility

    protected ­ ­ string ­ facility
    The facility value indicates the source of the message.
    var
    string
  • overridePriority

    protected ­ ­ string ­ overridePriority
    If set to true, the message priority will always use the value defined in $priority, otherwise the priority will be determined by the message's log level.
    var
    string

Methods in detail

  • setIdent

    public setIdent ( string ident )
    Sets the $ident.
    param
    string ident
  • setPriority

    public setPriority ( string priority )
    Sets the $priority.
    param
    string priority
  • setFacility

    public setFacility ( string facility )
    Sets the $facility.
    param
    string facility
  • setOverridePriority

    public setOverridePriority ( string overridePriority )
    Sets the $overridePriority.
    param
    string overridePriority
  • setOption

    public setOption ( string option )
    Sets the 'option' parameter.
    param
    string option
  • getIdent

    string public getIdent ( )
    Returns the 'ident' parameter.
    return
    string
  • getPriority

    string public getPriority ( )
    Returns the 'priority' parameter.
    return
    string
  • getFacility

    string public getFacility ( )
    Returns the 'facility' parameter.
    return
    string
  • getOverridePriority

    string public getOverridePriority ( )
    Returns the 'overridePriority' parameter.
    return
    string
  • getOption

    string public getOption ( )
    Returns the 'option' parameter.
    return
    string
  • activateOptions

    public activateOptions ( )
  • close

    public close ( )
  • append

    public append ( LoggingEvent event )
    Appends the event to syslog. Log is opened and closed each time because if it is not closed, it can cause the Apache httpd server to log to whatever ident/facility was used in openlog().
    see
    n2n\log4php\appender\http://www.php.net/manual/en/function.syslog.php#97843