<commit_before>version: 1
formatters:
  simple:
    format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
  json:
    class: foodbeazt.jsonlog.JsonLogFormatter
    format: '%(message)s'
handlers:
  console:
    class: logging.StreamHandler
    level: DEBUG
    formatter: json
    stream: ext://sys.stdout
  file:
    class: logging.handlers.RotatingFileHandler
    level: INFO
    formatter: json
    filename: fbeazt.log
    maxBytes: 10485760 # 10MB
    backupCount: 10
loggers:
  foodbeazt.fapp:
    level: INFO
    handlers: [console, file]
    propagate: no
root:
  level: INFO
  handlers: [console, file]<commit_msg>Fix JSON log formatter in config file<commit_after>version: 1
formatters:
  simple:
    format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
  json:
    '()': foodbeazt.jsonlog.JsonLogFormatter
    format: '%(message)s'
handlers:
  console:
    class: logging.StreamHandler
    level: DEBUG
    formatter: json
    stream: ext://sys.stdout
  file:
    class: logging.handlers.RotatingFileHandler
    level: INFO
    formatter: json
    filename: /var/log/fbeazt.log
    maxBytes: 10485760 # 10MB
    backupCount: 10
loggers:
  foodbeazt.fapp:
    level: INFO
    handlers: [console, file]
    propagate: no
root:
  level: INFO
  handlers: [console, file]
{'fraction_non_alphanumeric': 0.11496913580246913, 'fraction_numerical': 0.020061728395061727, 'mean_word_length': 3.2664473684210527, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7117990', 'n_tokens_mistral': 481, 'n_tokens_neox': 454, 'n_words': 110}