21 lines
467 B
Python
21 lines
467 B
Python
|
import os
|
||
|
import logging
|
||
|
|
||
|
from data.logs_model.table_logs_model import table_logs_model
|
||
|
|
||
|
logger = logging.getLogger(__name__)
|
||
|
|
||
|
|
||
|
class LogsModelProxy(object):
|
||
|
def __init__(self):
|
||
|
self._model = table_logs_model
|
||
|
|
||
|
def __getattr__(self, attr):
|
||
|
return getattr(self._model, attr)
|
||
|
|
||
|
|
||
|
logs_model = LogsModelProxy()
|
||
|
logger.info('===============================')
|
||
|
logger.info('Using logs model `%s`', logs_model._model)
|
||
|
logger.info('===============================')
|