def log(self, message, *args):
        now = time.time()
        if len(args) == 1:
            args = args[0]
        message = message % args
        if self.log_ms:
            self.stream.write('%s.%03d %s - %s\n' %
                              (time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(now)),
                               1000 * (now - long(now)), self.name, message))
        else:
            self.stream.write('%s %s - %s\n' %
                              (time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(now)),
                               self.name, message))
dataset/ETHPy150Open pgiri/asyncoro/py2/asyncoro/__init__.py/Logger.log/original