# Path: myDevices/utils/logger.py
# MAX_JSON_ITEMS_PER_CATEGORY = 100
# JSON_FILE_LOGGER = '/var/log/myDevices/JSONData'
# JSON_FILE_DUMP_TIME = 60
# FLOOD_INTERVAL_DROP = 60
# FLOOD_LOGGING_COUNT = 10
# LOG_FORMATTER = Formatter(fmt='%(asctime)s - %(name)s - %(levelname)s - %(message)s', datefmt="%Y-%m-%d %H:%M:%S")
# LOGGER = getLogger("myDevices")
# CONSOLE_HANDLER = StreamHandler()
# def namer(name):
# def rotator(source, dest):
# def rotatorJsonMp():
# def rotatorJson():
# def setInfo():
# def setDebug():
# def debugEnabled():
# def logToFile(filename=None):
# def debug(message):
# def checkFlood(message):
# def info(message):
# def warn(message):
# def error(message, *args, **kwargs):
# def exception(message):
# def logJson(message, category = ''):
# def printBytes(buff):


import json
from myDevices.utils import logger

M_PLAIN = "text/plain"
M_JSON  = "application/json"

def jsonDumps(obj):

# Path: myDevices/utils/logger.py
# MAX_JSON_ITEMS_PER_CATEGORY = 100
# JSON_FILE_LOGGER = '/var/log/myDevices/JSONData'
# JSON_FILE_DUMP_TIME = 60
# FLOOD_INTERVAL_DROP = 60
# FLOOD_LOGGING_COUNT = 10
# LOG_FORMATTER = Formatter(fmt='%(asctime)s - %(name)s - %(levelname)s - %(message)s', datefmt="%Y-%m-%d %H:%M:%S")
# LOGGER = getLogger("myDevices")
# CONSOLE_HANDLER = StreamHandler()
# def namer(name):
# def rotator(source, dest):
# def rotatorJsonMp():
# def rotatorJson():
# def setInfo():
# def setDebug():
# def debugEnabled():
# def logToFile(filename=None):
# def debug(message):
# def checkFlood(message):
# def info(message):
# def warn(message):
# def error(message, *args, **kwargs):
# def exception(message):
# def logJson(message, category = ''):
# def printBytes(buff):


# Path: myDevices/utils/types.py
import json
from myDevices.utils import logger


M_PLAIN = "text/plain"
M_JSON  = "application/json"

def jsonDumps(obj):

    if logger.debugEnabled():