Created
March 23, 2016 05:31
-
-
Save afroisalreadyinu/7ba473a2dd9562f953bb to your computer and use it in GitHub Desktop.
Rotating file handler config for stashpy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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