Source

dogslow / EXAMPLE.synnefo

# Enabling dogslow in synnefo settings
# Apply the following settings in your local settings file 
# (e.g. /etc/synnefo/99-local.conf)

# Sample settings for dogslow in /etc/synnefo/99-local.conf

DOGSLOW = True

# !!! Requires valid django email settings (EMAIL_HOST/EMAIL_PORT etc.)
DOGSLOW_EMAIL_TO = 'kpap@grnet,gr'
DOGSLOW_EMAIL_FROM = 'no-reply@grnet.gr'

DOGSLOW_TIMER = 25

# optionally you can create your own logger to log slow requests
LOGGING_SETUP['handlers']['dogslowfile'] = {
  'filename': '/tmp/testlog-rotated.log',
  'when': 'midnight',
  'class': 'logging.handlers.TimedRotatingFileHandler'

}
LOGGING_SETUP['handlers']['file']['filename'] = '/tmp/testlog.log'
LOGGING_SETUP['loggers']['dogslow'] = {
    'level': 'INFO',
    'handlers': ['dogslowfile']
}
DOGSLOW_LOGGER = 'dogslow'
DOGSLOW_LOG_LEVEL = 'WARNING'

MIDDLEWARE_CLASSES.insert(0, "dogslow.WatchdogMiddleware")