Package rpki.log

Classes

class  logger

Functions

def init
def set_trace
def trace
def traceback

Variables

tuple debug = logger(syslog.LOG_DEBUG)
 enable_trace = False
 Whether call tracing is enabled.
tuple error = logger(syslog.LOG_ERR)
tuple info = logger(syslog.LOG_INFO)
tuple note = logger(syslog.LOG_NOTICE)
int pid = 0
string tag = ""
 use_syslog = True
 Whether to use syslog.
tuple warn = logger(syslog.LOG_WARNING)

Detailed Description

Logging facilities for RPKI libraries.

$Id: log.py 2933 2010-01-07 01:00:17Z sra $

Copyright (C) 2009  Internet Systems Consortium ("ISC")

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.

Portions copyright (C) 2007--2008  American Registry for Internet Numbers ("ARIN")

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND ARIN DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS.  IN NO EVENT SHALL ARIN BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.

Function Documentation

def rpki.log.init (   ident = "rpki",
  flags = syslog.LOG_PID,
  facility = syslog.LOG_DAEMON 
)
Initialize logging system.

Definition at line 51 of file log.py.

def rpki.log.set_trace (   enable  ) 
Enable or disable call tracing.

Definition at line 63 of file log.py.

def rpki.log.trace (  ) 
Execution trace -- where are we now, and whence came we here?

Definition at line 91 of file log.py.

def rpki.log.traceback (  ) 
Consolidated backtrace facility with a bit of extra info.

Definition at line 100 of file log.py.


Variable Documentation

tuple rpki::log.debug = logger(syslog.LOG_DEBUG)

Definition at line 89 of file log.py.

Whether call tracing is enabled.

Definition at line 41 of file log.py.

tuple rpki::log.error = logger(syslog.LOG_ERR)

Definition at line 85 of file log.py.

tuple rpki::log.info = logger(syslog.LOG_INFO)

Definition at line 88 of file log.py.

tuple rpki::log.note = logger(syslog.LOG_NOTICE)

Definition at line 87 of file log.py.

int rpki::log.pid = 0

Definition at line 49 of file log.py.

string rpki::log.tag = ""

Definition at line 48 of file log.py.

Whether to use syslog.

Definition at line 46 of file log.py.

tuple rpki::log.warn = logger(syslog.LOG_WARNING)

Definition at line 86 of file log.py.


Generated on Tue Jan 12 07:56:02 2010 for RPKI Engine by  doxygen 1.6.1