# Path: nowtrade/configuration.py
# LOG_FILE = 'nowtrade.log'
# LOGGING_DEFAULT_CONSOLE = logging.WARNING
# LOGGING_DEFAULT_FILE = logging.WARNING
# GMAIL_USERNAME = 'sender@gmail.com'
# GMAIL_PASSWORD = 'password'
# RECIPIENT = 'recipient@email.com'


import logging
from nowtrade import configuration
"""
NowTrade module wrapper for the python logging module.
Allows for independent logging levels of different NowTrade components and
separate configurations for a console and file handler.
"""

CRITICAL = logging.CRITICAL
ERROR = logging.ERROR
WARNING = logging.WARNING
INFO = logging.INFO
DEBUG = logging.DEBUG

class Logger(object):
    """
    A simple wrapper around the python logging module.
    Logs to both a file and the console.
    """
    def __init__(self, name, log_file=configuration.LOG_FILE, \

# Path: nowtrade/configuration.py
# LOG_FILE = 'nowtrade.log'
# LOGGING_DEFAULT_CONSOLE = logging.WARNING
# LOGGING_DEFAULT_FILE = logging.WARNING
# GMAIL_USERNAME = 'sender@gmail.com'
# GMAIL_PASSWORD = 'password'
# RECIPIENT = 'recipient@email.com'


# Path: nowtrade/logger.py
import logging
from nowtrade import configuration

"""
NowTrade module wrapper for the python logging module.
Allows for independent logging levels of different NowTrade components and
separate configurations for a console and file handler.
"""

CRITICAL = logging.CRITICAL
ERROR = logging.ERROR
WARNING = logging.WARNING
INFO = logging.INFO
DEBUG = logging.DEBUG

class Logger(object):
    """
    A simple wrapper around the python logging module.
    Logs to both a file and the console.
    """
    def __init__(self, name, log_file=configuration.LOG_FILE, \

                 console_lvl=configuration.LOGGING_DEFAULT_CONSOLE, \