logger module

logger.changeProfile(profile_id, profile_name)[source]
logger.closelog()[source]
logger.debug(msg, parent=None, traceDepth=0)[source]
logger.deprecated(parent=None)[source]

Dev note (buhtz 2023-07-23): To my knowledge this function is called only one time in BIT. I assume it could be replace with python’s own deprecation warning system.

logger.error(msg, parent=None, traceDepth=0)[source]
logger.info(msg, parent=None, traceDepth=0)[source]
logger.openlog()[source]

Initialize the BiT logger system (which uses syslog)

Esp. sets the app name as identifier for the log entries in the syslog.

Attention: Call it in each sub process that uses logging.

logger.warning(msg, parent=None, traceDepth=0)[source]
logger.wrapLine(msg, size=950, delimiters='\t ', new_line_indicator='CONTINUE: ')[source]

Wrap line msg into multiple lines with each shorter than size. Try to break the line on delimiters. New lines will start with new_line_indicator.

Parameters:
  • msg (str) – string that should get wrapped

  • size (int) – maximum length of returned strings

  • delimiters (str) – try to break msg on these characters

  • new_line_indicator (str) – start new lines with this string

Yields:

str – lines with max size length