import logging as l

logger = l.getLogger('instana')


def init(level):
    ch = l.StreamHandler()
    f = l.Formatter('%(asctime)s: %(levelname)s: %(name)s: %(message)s')
    ch.setFormatter(f)
    logger.addHandler(ch)
    logger.setLevel(level)


def debug(s, *args):
    logger.debug("%s %s", s, ' '.join(args))


def info(s, *args):
    logger.info("%s %s", s, ' '.join(args))


def warn(s, *args):
    logger.warn("%s %s", s, ' '.join(args))


def error(s, *args):
    logger.error("%s %s", s, ' '.join(args))

@@ -12,16 +12,26 @@
 ing as l
+%0Aimport os
 %0A%0Alogger
@@ -53,16 +53,42 @@
 'instana
+(' + str(os.getpid()) + ')
 ')%0A%0A%0Adef

Include pid in log messages