Package rpki.log


Classes

class  logger

Functions

def init
def set_trace
def trace

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 = False
 Whether to use syslog.
tuple warn = logger(syslog.LOG_WARNING)

Detailed Description

Logging facilities for RPKI libraries.

$Id: log.py 2452 2009-05-27 02:54:24Z 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 | syslog.LOG_PERROR,
  facility = syslog.LOG_DAEMON 
)

Initialize logging system.

Definition at line 50 of file log.py.

def rpki.log.set_trace (   enable  ) 

Enable or disable call tracing.

Definition at line 62 of file log.py.

def rpki.log.trace (  ) 

Execution trace -- where are we now, and whence came we here?

Definition at line 90 of file log.py.


Variable Documentation

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

Definition at line 88 of file log.py.

Whether call tracing is enabled.

Definition at line 40 of file log.py.

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

Definition at line 84 of file log.py.

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

Definition at line 87 of file log.py.

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

Definition at line 86 of file log.py.

int rpki::log.pid = 0

Definition at line 48 of file log.py.

string rpki::log.tag = ""

Definition at line 47 of file log.py.

Whether to use syslog.

Definition at line 45 of file log.py.

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

Definition at line 85 of file log.py.


Generated on Tue Jun 2 19:10:19 2009 for RPKI Engine by  doxygen 1.5.8