Module netsyslog :: Class PriPart
[frames | no frames]

Type PriPart

object --+
         |
        PriPart


The PRI part of the packet.

Though never printed in the output from a syslog server, the PRI part is a crucial part of the packet. It encodes both the facility and severity of the packet, both of which are defined in terms of numerical constants from the standard syslog module.

See Section 4.1.1 of RFC 3164 for details.
Method Summary
  __init__(self, facility, severity)
Initialise the object, specifying facility and severity.
  __str__(self)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Method Details

__init__(self, facility, severity)
(Constructor)

Initialise the object, specifying facility and severity.

Specify the arguments using constants from the syslog module (e.g. syslog.LOG_USER, syslog.LOG_INFO).
Overrides:
__builtin__.object.__init__

Generated by Epydoc 2.1 on Fri Jul 15 11:57:30 2005 http://epydoc.sf.net