Ejemplo n.º 1
0
 def test_logger_config(self, setup):
     setup.parseConfiguration(setup.getConfigFilePath())
     #config = self.utilities.getConfigurationValue(Utilities.LOGGER_KEY)
     log = Logging.Logger('manage_donors', logging_config)
     logger = log.getLogger()
     logger.error("Test Message")
     assert(logger.isEnabledFor(logging.DEBUG))
Ejemplo n.º 2
0
def setupLogging():
    log = Logging.Logger('manage_donors', logging_config)
    logger = log.getLogger()
    logger.info("Logging Initialized")
Ejemplo n.º 3
0
import KLineBinance
import datetime
import EMA21

# host = "localhost"
host = "0.0.0.0"
port = 80
app = Flask(__name__)
app.secret_key = "secret"

alarm_manager = AlarmDataManager()

alarm_manager_binance = AlarmDataManager()

log_queue = queue.Queue(-1)
logger = Logging.Logger(log_queue)
logger.start()

kline = KLine.KLine()
kline.start()

kline_binance = KLineBinance.KLine()
kline_binance.start()

ema = EMA21.EMA21()
ema.start()

alarm_data = []
alarm_data_binance = []