Skip to content

Instantly share code, notes, and snippets.

import os
import logging
import logging.config
from trytond.config import config
from trytond.application import app
logconf = os.environ.get('TRYTOND_LOGCONF')
if logconf:
logging.config.fileConfig(logconf)