# Path: nowtrade/logger.py
# CRITICAL = logging.CRITICAL
# ERROR = logging.ERROR
# WARNING = logging.WARNING
# INFO = logging.INFO
# DEBUG = logging.DEBUG
# class Logger(object):
#     def __init__(self, name, log_file=configuration.LOG_FILE, \
#                  console_lvl=configuration.LOGGING_DEFAULT_CONSOLE, \
#                  file_lvl=configuration.LOGGING_DEFAULT_FILE):
#     def get_logger_level(self, name, default, out):
#     def get_console_level(self, name, default):
#     def get_file_level(self, name, default):
#     def set_file_level(self, lvl):
#     def set_console_level(self, lvl):
#     def debug(self, message):
#     def info(self, message):
#     def warning(self, message):
#     def error(self, message):
#     def critical(self, message):
#     def exception(self, message):
#     def __getstate__(self):
#     def __setstate__(self, data):


from nowtrade import logger
"""
The actions module contains classes representing all the different actions
that can be taken in the markets.
"""

LONG = 1
SHORT = 2
NO_ACTION = 0
LONG_EXIT = -1
SHORT_EXIT = -2

ACTIONS_MAP = {1: 'LONG',
               2: 'SHORT',
               0: 'NO_ACTION',
               -1: 'LONG_EXIT',
               -2: 'SHORT_EXIT'}

class Action(object):
    """
    Abstract Action object represents an action to be taken in the market.
    """
    def __init__(self, name):
        self.name = name.replace(' ', '').replace('_', '').replace('-', '').lower()

# Path: nowtrade/logger.py
# CRITICAL = logging.CRITICAL
# ERROR = logging.ERROR
# WARNING = logging.WARNING
# INFO = logging.INFO
# DEBUG = logging.DEBUG
# class Logger(object):
#     def __init__(self, name, log_file=configuration.LOG_FILE, \
#                  console_lvl=configuration.LOGGING_DEFAULT_CONSOLE, \
#                  file_lvl=configuration.LOGGING_DEFAULT_FILE):
#     def get_logger_level(self, name, default, out):
#     def get_console_level(self, name, default):
#     def get_file_level(self, name, default):
#     def set_file_level(self, lvl):
#     def set_console_level(self, lvl):
#     def debug(self, message):
#     def info(self, message):
#     def warning(self, message):
#     def error(self, message):
#     def critical(self, message):
#     def exception(self, message):
#     def __getstate__(self):
#     def __setstate__(self, data):


# Path: nowtrade/action.py
from nowtrade import logger

"""
The actions module contains classes representing all the different actions
that can be taken in the markets.
"""

LONG = 1
SHORT = 2
NO_ACTION = 0
LONG_EXIT = -1
SHORT_EXIT = -2

ACTIONS_MAP = {1: 'LONG',
               2: 'SHORT',
               0: 'NO_ACTION',
               -1: 'LONG_EXIT',
               -2: 'SHORT_EXIT'}

class Action(object):
    """
    Abstract Action object represents an action to be taken in the market.
    """
    def __init__(self, name):
        self.name = name.replace(' ', '').replace('_', '').replace('-', '').lower()

        self.logger = logger.Logger(self.__class__.__name__)