# Path: sibyl/commons.py
# def init_logger(name):
#     logger = logging.getLogger(name)
# 
#     console_handler = logging.StreamHandler()
#     log_format = "%(levelname)-5s: %(message)s"
#     console_handler.setFormatter(logging.Formatter(log_format))
#     logger.addHandler(console_handler)
# 
#     logger.setLevel(logging.ERROR)
#     return logger


from sibyl.commons import init_logger


class Engine(object):
    """Wrapper on execution engine"""

    def __init__(self, machine):
        """Instanciate an Engine
        @machine: miasm2.analysis.machine:Machine instance"""
        self.logger = init_logger(self.__class__.__name__)

    def take_snapshot(self):

# Path: sibyl/commons.py
# def init_logger(name):
#     logger = logging.getLogger(name)
# 
#     console_handler = logging.StreamHandler()
#     log_format = "%(levelname)-5s: %(message)s"
#     console_handler.setFormatter(logging.Formatter(log_format))
#     logger.addHandler(console_handler)
# 
#     logger.setLevel(logging.ERROR)
#     return logger


# Path: sibyl/engine/engine.py
from sibyl.commons import init_logger



class Engine(object):
    """Wrapper on execution engine"""

    def __init__(self, machine):
        """Instanciate an Engine
        @machine: miasm2.analysis.machine:Machine instance"""
        self.logger = init_logger(self.__class__.__name__)

    def take_snapshot(self):

        self.vm_mem = self.jitter.vm.get_all_memory()