casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes | Static Private Attributes
__casac__.logsink.logsink Class Reference
Inheritance diagram for __casac__.logsink.logsink:
__casac__.logsink._object

List of all members.

Public Member Functions

def __init__
def origin
def filter
def post
def postLocally
def localId
def version
def id
def setglobal
def setlogfile
def showconsole
def logfile

Public Attributes

 this

Static Private Attributes

dictionary __swig_setmethods__
tuple __setattr__
dictionary __swig_getmethods__
tuple __getattr__
 __repr__
 __swig_destroy__
 __del__

Detailed Description

Proxy of C++ casac::logsink class

Definition at line 70 of file logsink.py.


Constructor & Destructor Documentation

__init__(self) -> logsink

Definition at line 77 of file logsink.py.


Member Function Documentation

def __casac__.logsink.logsink.filter (   self,
  args,
  kwargs 
)
filter(self, level=string("DEBUG2")) -> bool

Summary
Set the filter level

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 

--------------------------------------------------------------------------------

Definition at line 99 of file logsink.py.

id(self) -> string

Summary
Get ID
--------------------------------------------------------------------------------

Definition at line 170 of file logsink.py.

Referenced by gprof2dot.DotWriter.attr_list(), gprof2dot.DotWriter.edge(), and gprof2dot.DotWriter.node().

localId(self) -> string

Summary
Get local ID
--------------------------------------------------------------------------------

Definition at line 148 of file logsink.py.

logfile(self) -> string

Summary
Returns the full path of the log file
--------------------------------------------------------------------------------

Definition at line 226 of file logsink.py.

def __casac__.logsink.logsink.origin (   self,
  args,
  kwargs 
)
origin(self, fromwhere) -> bool

Summary
Set the origin of the message

Input Parameters:
fromwhere        The origin of a log messages 

--------------------------------------------------------------------------------

Definition at line 84 of file logsink.py.

def __casac__.logsink.logsink.post (   self,
  args,
  kwargs 
)
post(self, message, priority=string("INFO"), origin=string("")) -> bool

Summary
Post a message

Input Parameters:
message          Message to be posted 
priority         Priority of message to be posted INFO 
origin           Origin of message to be posted 

--------------------------------------------------------------------------------

Definition at line 114 of file logsink.py.

def __casac__.logsink.logsink.postLocally (   self,
  args,
  kwargs 
)
postLocally(self, message, priority=string("INFO"), origin=string("")) -> bool

Summary
Post locally

Input Parameters:
message          Message to be posted 
priority         Priority of message to be posted INFO 
origin           Origin of message to be posted 

--------------------------------------------------------------------------------

Definition at line 131 of file logsink.py.

def __casac__.logsink.logsink.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 

--------------------------------------------------------------------------------

Definition at line 181 of file logsink.py.

def __casac__.logsink.logsink.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 

--------------------------------------------------------------------------------

Definition at line 196 of file logsink.py.

def __casac__.logsink.logsink.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 

--------------------------------------------------------------------------------

Definition at line 211 of file logsink.py.

version(self) -> string

Summary
version of CASA
--------------------------------------------------------------------------------

Definition at line 159 of file logsink.py.


Member Data Documentation

Definition at line 83 of file logsink.py.

tuple __casac__.logsink.logsink.__getattr__ [static, private]

Definition at line 75 of file logsink.py.

Definition at line 76 of file logsink.py.

tuple __casac__.logsink.logsink.__setattr__ [static, private]

Definition at line 73 of file logsink.py.

Definition at line 82 of file logsink.py.

dictionary __casac__.logsink.logsink.__swig_getmethods__ [static, private]

Definition at line 74 of file logsink.py.

dictionary __casac__.logsink.logsink.__swig_setmethods__ [static, private]

Definition at line 72 of file logsink.py.

Definition at line 81 of file logsink.py.


The documentation for this class was generated from the following file: