server logging
This commit is contained in:
parent
487ddf50e1
commit
de4d34cf49
1 changed files with 5 additions and 2 deletions
|
@ -16,15 +16,18 @@ from coapthon.messages.request import Request
|
||||||
from coapthon.messages.response import Response
|
from coapthon.messages.response import Response
|
||||||
from coapthon.resources.resource import Resource
|
from coapthon.resources.resource import Resource
|
||||||
from coapthon.serializer import Serializer
|
from coapthon.serializer import Serializer
|
||||||
from coapthon.utils import Tree
|
from coapthon.utils import Tree, create_logging
|
||||||
import collections
|
import collections
|
||||||
|
|
||||||
|
|
||||||
__author__ = 'Giacomo Tanganelli'
|
__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):
|
class CoAP(object):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue