Package install :: Package MoSTBioDat :: Package Log :: Module MoSTBioDatLog
[hide private]
[frames] | no frames]

Module MoSTBioDatLog

source code

Classes [hide private]
  ExtendLogRecord
Extension of Log Record class INPUT: name - str- name of logger level - set the root logger level to the specified level pathname - str, absolute pathname of source file in which logging call was made lineno - number in that file where logging call is found msg - user-supplied message (a format string) args - tuple which, together with msg, makes up the user message exc_info - exception tuple obtained by calling sys.exc_info() func -name of function logging call was made
  ExtendLogger
Extension of Logger Class
  getLocalIP
get local IP address INPUT: servername - str - servername, default 192.168.1.2 port - int - server port, default 22
  MoSTBioDatLog
main MoSTBioDat logging module INPUT: format - str - logging file format, default "%(levelname)s %(asctime)s %(ip)s %(username)s %(filename)s %(module)s %(funcName)s %(lineno)d >> %(message)s " filter - specified record to be logged datefmt - str - date format path - str - path to log files filename - str - log filename, default 'log' filemode - str - log file mode, default 'wa' level - str - logging level, default logging.DEBUG logfilelevel - log file level temporary - str - temporary directory
Functions [hide private]
 
getCurrentUser()
get current user
source code
 
callFunctionName()
get function name
source code
 
callFrame()
call Frame
source code
 
isUserSourceFile(filename)
check if file belongs to specified user
source code
 
getCurrentFile()
get current file
source code
 
filterKeys(dictionary, keys, key)
check input settings
source code
 
datetime()
generate date/time stamp used in log
source code
 
geTime(nseconds)
get time
source code
Variables [hide private]
  _srcfile = '/home/abak/workspace/test/src/install/MoSTBioDat/L...
Variables Details [hide private]

_srcfile

Value:
'/home/abak/workspace/test/src/install/MoSTBioDat/Log/MoSTBioDatLog.py\
'