mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-12 05:26:59 +08:00
20 lines
449 B
Python
20 lines
449 B
Python
"""
|
|
Small classes to assist with timezone calculations, LOGGER configuration,
|
|
and other common operations.
|
|
"""
|
|
|
|
import logging
|
|
import logging.config
|
|
from os.path import join, abspath, dirname
|
|
|
|
def configure_logging():
|
|
logging.config.fileConfig(
|
|
logger_path(),
|
|
disable_existing_loggers = False
|
|
)
|
|
|
|
def logger_path():
|
|
import zipline
|
|
log_path = dirname(abspath(zipline.__file__))
|
|
return join(log_path, 'logging.cfg')
|