text: import os
  import sys
  from dss import localsettings
  
  if os.name == 'posix':
      LOG_FILE = localsettings.DSS_TEMP_PATH + 'dss.log'
      if not os.path.exists(LOG_FILE):
          print("Creating {}".format(LOG_FILE))
          open(LOG_FILE, 'a').close()
      else:
          print("{} already exists.".format(LOG_FILE))
  
  else:
      LOG_FILE = 'c:\\temp\\dss.log'
  
  LOGGING = {
      'version': 1,
      'disable_existing_loggers': False,
      'formatters': {
          'verbose': {
              'format': "[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s] %(message)s",
              'datefmt': "%d/%b/%Y %H:%M:%S"
          },
          'simple': {
              'format': '%(levelname)s %(message)s'
          },
      },
      'handlers': {
          'file': {
              'level': 'INFO',
              'class': 'logging.FileHandler',
              'filename': LOG_FILE,
              'formatter': 'verbose'
          }, 'console': {
              'class': 'logging.StreamHandler',
              'stream': sys.stdout,
          }
      },
      'loggers': {
          'django': {
              'handlers': ['file'],
              'propagate': True,
              'level': 'DEBUG',
          },
          'dss': {
              'handlers': ['file', 'console'],
              'level': 'DEBUG',
          },
      }
  }
  