daily pastebin goal
64%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: 1
  2. disable_existing_loggers: False
  3. formatters:
  4.     simple:
  5.         format: "%(asctime)s - %(filename)s - %(levelname)s - %(message)s"
  6.  
  7. handlers:
  8.     console:
  9.         class: logging.StreamHandler
  10.         level: INFO
  11.         formatter: simple
  12.         stream: ext://sys.stdout
  13.  
  14.     info_file_handler:
  15.         class: logging.handlers.RotatingFileHandler
  16.         level: INFO
  17.         formatter: simple
  18.         filename: info.log
  19.         maxBytes: 10485760 # 10MB
  20.         backupCount: 10
  21.         encoding: utf8
  22.  
  23.     sentry:
  24.         level: ERROR
  25.         class: raven.handlers.logging.SentryHandler
  26.         dsn:
  27.  
  28.     logstash2:
  29.         level: INFO
  30.         class: logstash.TCPLogstashHandler
  31.         host: localhost
  32.         port: 5016
  33.         version: 1
  34.  
  35.  
  36. loggers:
  37.     my_module:
  38.         level: ERROR
  39.         handlers: [console]
  40.         propagate: no
  41.  
  42. root:
  43.     level: INFO
  44.     handlers: [console, info_file_handler, sentry, logstash2]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top