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
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
i
j
l
m
o
p
r
s
t
u
v
w
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Files
File List
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
LogFormatter.py
Go to the documentation of this file.
1
'''
2
HCE project, Python bindings.
3
Logging messages formatters classes.
4
5
@package: dtm
6
@author bgv bgv.hce@gmail.com
7
@link: http://hierarchical-cluster-engine.com/
8
@copyright: Copyright © 2013-2014 IOIX Ukraine
9
@license: http://hierarchical-cluster-engine.com/license/
10
@since: 0.1
11
'''
12
13
16
class
LogFormatterEvent
(object):
17
18
OBJECT_DUMP_DELIMITER =
"\n"
19
MESSAGE_PREFIX =
""
20
21
27
def
__init__
(self, event, objectsList, descriptionText):
28
self.
event
= event
29
self.
objects
= objectsList
30
self.
description
= descriptionText
31
32
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
app.LogFormatter.LogFormatterEvent.MESSAGE_PREFIX
string MESSAGE_PREFIX
Definition:
LogFormatter.py:19
app.LogFormatter.LogFormatterEvent
Log formatter event, defines the object to format message string.
Definition:
LogFormatter.py:16
app.LogFormatter.LogFormatterEvent.description
description
Definition:
LogFormatter.py:30
app.LogFormatter.LogFormatterEvent.__init__
def __init__(self, event, objectsList, descriptionText)
constructor initialize fields
Definition:
LogFormatter.py:27
app.LogFormatter.LogFormatterEvent.event
event
Definition:
LogFormatter.py:28
app.LogFormatter.LogFormatterEvent.__str__
def __str__(self)
Definition:
LogFormatter.py:33
app.LogFormatter.LogFormatterEvent.objects
objects
Definition:
LogFormatter.py:29
app.LogFormatter.LogFormatterEvent.OBJECT_DUMP_DELIMITER
string OBJECT_DUMP_DELIMITER
Definition:
LogFormatter.py:18
sources
hce
app
LogFormatter.py
Generated on Fri Nov 24 2017 18:53:54 for HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings. by
1.8.13