server logging

This commit is contained in:
giacomo.tanganelli@for.unipi.it 2018-05-11 16:15:13 +02:00
parent 487ddf50e1
commit de4d34cf49

View file

@ -16,15 +16,18 @@ from coapthon.messages.request import Request
from coapthon.messages.response import Response
from coapthon.resources.resource import Resource
from coapthon.serializer import Serializer
from coapthon.utils import Tree
from coapthon.utils import Tree, create_logging
import collections
__author__ = 'Giacomo Tanganelli'
logger = logging.getLogger(__name__)
if not os.path.isfile("logging.conf"):
create_logging()
logger = logging.getLogger(__name__)
logging.config.fileConfig("logging.conf", disable_existing_loggers=False)
class CoAP(object):
"""