Package rrlog :: Package server :: Class MsgJob
[hide private]
[frames] | no frames]

Class MsgJob

source code

object --+
         |
        MsgJob

Instance Methods [hide private]
 
__init__(self, pid, clientid, msgid, msg, ts, special, cat, path, tblen, cfunc, formatter)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
str Callers File Name
cfn(self) source code
int Callers Line Number
cln(self) source code
dict
getFormattedDict(self)
DEPRECATED: use format_dict of the DBLogWriter
source code
str
pathStr(self, imin=0)
Returns: path as formatted str
source code
 
copy_update(self, kwargs)
Returns: new instance with my init kwargs but updated with the given kwargs
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Instance Variables [hide private]
  clientid
int, id of the client that caused the message.
  msg
str, msg as created by the client.
  msgid
int, id of the message.
  path
client traceback path as sequence of (filename, linenumber).
  special
dict with custom items (see "special" argument of the log method)
  tblen
len of the client traceback when the log method was called
  ts
str, timestamp
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, pid, clientid, msgid, msg, ts, special, cat, path, tblen, cfunc, formatter)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • special - data for custom observers only
  • ts - timestamp, str
Overrides: object.__init__

getFormattedDict(self)

source code 

DEPRECATED: use format_dict of the DBLogWriter

Returns: dict
Dict with already formatted data

pathStr(self, imin=0)

source code 
Parameters:
  • imin - min.index of path to use. Fo example, imin==1 will skip the first path item (Note: the first item is also available separately as cfn,cln)
Returns: str
path as formatted str

copy_update(self, kwargs)

source code 
Returns:
new instance with my init kwargs but updated with the given kwargs

Instance Variable Details [hide private]

clientid

int, id of the client that caused the message. Unique in the server.

msgid

int, id of the message. Unique in the client.

path

client traceback path as sequence of (filename, linenumber). [0] is the latest (where the log call happened)