Coverage for /home/warp/casa/atejeda/coverage/build/linux-x86_64/python/2.7/__casac__/logsink : 2%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.4 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead.
from sys import version_info if version_info >= (2,6,0): def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('_logsink', [dirname(__file__)]) except ImportError: import _logsink return _logsink if fp is not None: try: _mod = imp.load_module('_logsink', fp, pathname, description) finally: fp.close() return _mod _logsink = swig_import_helper() del swig_import_helper else: import _logsink del version_info try: _swig_property = property except NameError: pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name,None) if method: return method(self,value) if (not static): self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self,class_type,name,value): return _swig_setattr_nondynamic(self,class_type,name,value,0)
def _swig_getattr(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError(name)
def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try: _object = object _newclass = 1 except AttributeError: class _object : pass _newclass = 0
class logsink(_object): """Proxy of C++ casac::logsink class""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, logsink, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, logsink, name) __repr__ = _swig_repr def __init__(self): """__init__(self) -> logsink""" this = _logsink.new_logsink() try: self.this.append(this) except: self.this = this __swig_destroy__ = _logsink.delete_logsink __del__ = lambda self : None; def origin(self, *args, **kwargs): """ origin(self, fromwhere) -> bool
Summary Set the origin of the message
Description Sets the origin of messages to be displayed
Input Parameters: fromwhere The origin of a log messages
--------------------------------------------------------------------------------
"""
def processorOrigin(self, *args, **kwargs): """ processorOrigin(self, fromwhere) -> bool
Summary Set the CASA processor origin
Description Sets the CASA processor origin which is shown at the end of each log origin
Input Parameters: fromwhere Input CASA processor origin name
--------------------------------------------------------------------------------
""" return _logsink.logsink_processorOrigin(self, *args, **kwargs)
def filter(self, *args, **kwargs): """ filter(self, level = string("DEBUG2"), exclueMsg = std::vector< string >(1, "")) -> bool
Summary Set the filter level
Description Set the filter level of logging messages to be displayed. This will determine what log messages go into the log file. The logger itself can adjust what gets displayed so you could set INFO5 and then filter in the logger everything above INFO1.
Input Parameters: level Level of messages to display to the console/log file ERROR WARN INFO INFO1 INFO2 INFO3 INFO4 INFO5 DEBUG DEBUG1 DEBUG2 INFO exclueMsg Array of strings to filter out undesired messages
--------------------------------------------------------------------------------
""" return _logsink.logsink_filter(self, *args, **kwargs)
def post(self, *args, **kwargs): """ post(self, message, priority = string("INFO"), origin = string("")) -> bool
Summary Post a message
Description If the message passes the filter, write it (same as postLocally)
Input Parameters: message Message to be posted priority Priority of message to be posted INFO origin Origin of message to be posted
--------------------------------------------------------------------------------
"""
def postLocally(self, *args, **kwargs): """ postLocally(self, message, priority = string("INFO"), origin = string("")) -> bool
Summary Post locally
Description If the message passes the filter, write it
Input Parameters: message Message to be posted priority Priority of message to be posted INFO origin Origin of message to be posted
Example:
--------------------------------------------------------------------------------
""" return _logsink.logsink_postLocally(self, *args, **kwargs)
def localId(self): """ localId(self) -> string
Summary Get local ID
Description Returns the id for this class Example:
--------------------------------------------------------------------------------
""" return _logsink.logsink_localId(self)
def version(self): """ version(self) -> string
Summary version of CASA
Description Returns the version of CASA as well as sending it to the log Example: casalog.version() --------------------------------------------------------------------------------
""" return _logsink.logsink_version(self)
def id(self): """ id(self) -> string
Summary Get ID
Description Returns the ID of the LogSink in use Example:
--------------------------------------------------------------------------------
""" return _logsink.logsink_id(self)
def setglobal(self, isglobal = True): """ setglobal(self, isglobal = True) -> bool
Summary Set this logger to be the global logger
Input Parameters: isglobal Use as global logger true
--------------------------------------------------------------------------------
""" return _logsink.logsink_setglobal(self, isglobal)
def setlogfile(self, *args, **kwargs): """ setlogfile(self, filename = string("casapy.log")) -> bool
Summary Set the name of file for logger output
Input Parameters: filename filename for logger casapy.log
--------------------------------------------------------------------------------
""" return _logsink.logsink_setlogfile(self, *args, **kwargs)
def showconsole(self, onconsole = False): """ showconsole(self, onconsole = False) -> bool
Summary Choose to send messages to the console/terminal
Input Parameters: onconsole All messages to the console as well as log file false
--------------------------------------------------------------------------------
""" return _logsink.logsink_showconsole(self, onconsole)
def logfile(self): """ logfile(self) -> string
Summary Returns the full path of the log file
Description Returns the full path of the log file Example: logfile = casalog.logfile() --------------------------------------------------------------------------------
""" return _logsink.logsink_logfile(self)
logsink_swigregister = _logsink.logsink_swigregister logsink_swigregister(logsink)
# This file is compatible with both classic and new-style classes.
|