-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclass_logentry.py
More file actions
32 lines (26 loc) · 827 Bytes
/
Copy pathclass_logentry.py
File metadata and controls
32 lines (26 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
__author__ = 'Per'
# 12.04.14
# works
class logentry(object):
def __init__(self, logid, logtype, logdate, logtxt):
self.logid = logid
self.logtype = logtype
self.logdate = logdate
self.logtxt = logtxt
def printlog(self):
return(self.logid, "logtype :", self.logtype, "logdate :", self.logdate, "logtext :", self.logtxt[0:50] + "...")
# print("log-ID :", self.Logid)
# print("logtype :", self.Logtype)
# print("logdate :", self.Logdate)
# print("logtext :", self.Logtxt)
# def logtype(self):
# return(self.Logtype)
#
# def logdate(self):
# return(self.Logdate)
#
# def logtxt(self):
# return(self.Logtxt)
#
# def logid(self):
# return(self.Logid)