HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
app.LogFormatter.LogFormatterEvent Class Reference

Log formatter event, defines the object to format message string. More...

Inheritance diagram for app.LogFormatter.LogFormatterEvent:
Collaboration diagram for app.LogFormatter.LogFormatterEvent:

Public Member Functions

def __init__ (self, event, objectsList, descriptionText)
 constructor initialize fields More...
 
def __str__ (self)
 

Public Attributes

 event
 
 objects
 
 description
 

Static Public Attributes

string OBJECT_DUMP_DELIMITER = "\n"
 
string MESSAGE_PREFIX = ""
 

Detailed Description

Log formatter event, defines the object to format message string.

The LogFormatterEvent object used to create log message string representation according with special format.

Definition at line 16 of file LogFormatter.py.

Constructor & Destructor Documentation

◆ __init__()

def app.LogFormatter.LogFormatterEvent.__init__ (   self,
  event,
  objectsList,
  descriptionText 
)

constructor initialize fields

Parameters
eventEvent object instance to dump itself and eventObj inside
objectsListList of objects to dump

Definition at line 27 of file LogFormatter.py.

27  def __init__(self, event, objectsList, descriptionText):
28  self.event = event
29  self.objects = objectsList
30  self.description = descriptionText
31 
32 
def __init__(self)
constructor
Definition: UIDGenerator.py:19

Member Function Documentation

◆ __str__()

def app.LogFormatter.LogFormatterEvent.__str__ (   self)

Definition at line 33 of file LogFormatter.py.

33  def __str__(self):
34  ret = self.MESSAGE_PREFIX + str(vars(self.event))
35 
36  if self.event.eventObj and hasattr(self.event.eventObj, "__dict__"):
37  ret = ret + self.OBJECT_DUMP_DELIMITER + str(vars(self.event.eventObj)) + self.OBJECT_DUMP_DELIMITER
38  for obj in self.objects:
39  ret = ret + self.OBJECT_DUMP_DELIMITER + str(vars(obj)) + self.OBJECT_DUMP_DELIMITER
40 
41  ret = ret + self.description + self.OBJECT_DUMP_DELIMITER
42 
43  return ret
44 
45 
46 

Member Data Documentation

◆ description

app.LogFormatter.LogFormatterEvent.description

Definition at line 30 of file LogFormatter.py.

◆ event

app.LogFormatter.LogFormatterEvent.event

Definition at line 28 of file LogFormatter.py.

◆ MESSAGE_PREFIX

string app.LogFormatter.LogFormatterEvent.MESSAGE_PREFIX = ""
static

Definition at line 19 of file LogFormatter.py.

◆ OBJECT_DUMP_DELIMITER

string app.LogFormatter.LogFormatterEvent.OBJECT_DUMP_DELIMITER = "\n"
static

Definition at line 18 of file LogFormatter.py.

◆ objects

app.LogFormatter.LogFormatterEvent.objects

Definition at line 29 of file LogFormatter.py.


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