Skip to content

Instantly share code, notes, and snippets.

@afroisalreadyinu
Created March 23, 2016 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afroisalreadyinu/7ba473a2dd9562f953bb to your computer and use it in GitHub Desktop.
Save afroisalreadyinu/7ba473a2dd9562f953bb to your computer and use it in GitHub Desktop.
Rotating file handler config for stashpy
processor_spec:
to_dict:
- "My name is {name} and I'm {age:d} years old."
port: 8888
address : '0.0.0.0'
indexer_config:
host: localhost
port: 9200
index_pattern: 'kita-indexer-%Y-%m'
logging:
version: 1
disable_existing_loggers: False
formatters:
default:
format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
handlers:
default:
class: logging.handlers.RotatingFileHandler
formatter: default
filename: '/var/log/stashpy.log'
mode: 'a'
maxBytes: 10485760
backupCount: 5
level: 10 #logging.DEBUG
root:
handlers:
- default
level: 10 #logging.DEBUG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment