<commit_before>[loggers]
keys=root,ceilometer,cinder,glance,horizon,keystone,nova,swift,amqplib,sqlalchemy,boto,suds,eventletwsgi,<%= node["openstack"]["logging"]["ignore"].map{|k,v| k.gsub(/\W/, '_')}.join(',') %>

[formatters]
keys=normal,normal_with_name,debug,syslog_with_name,syslog_debug

[handlers]
keys=stderr,devel,prod,debug

## FORMATTERS ##

[formatter_debug]
format=[%(name)s]: %(asctime)s %(levelname)s %(module)s.%(funcName)s %(message)s

[formatter_normal]
format=%(asctime)s %(levelname)s %(message)s

[formatter_normal_with_name]
format=[%(name)s]: %(asctime)s %(levelname)s %(message)s

[formatter_syslog_with_name]
format=%(name)s: %(levelname)s %(message)s

[formatter_syslog_debug]
format=%(name)s: %(levelname)s %(module)s.%(funcName)s %(message)s

## LOGGERS ##

[logger_amqplib]
level = WARNING
handlers = stderr
qualname = amqplib

[logger_sqlalchemy]
level = WARNING
handlers = stderr
qualname = sqlalchemy
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARNING" logs neither.  (Recommended for production systems.)

[logger_boto]
level = WARNING
handlers = stderr
qualname = boto

[logger_suds]
level = INFO
handlers = stderr
qualname = suds

<% node["openstack"]["logging"]["ignore"].each do |k,v| %>
[logger_<%= k.gsub(/\W/, '_') %>]
level = <%= v %>
handlers = prod,debug
qualname = <%= k %>

<% end %>
[logger_eventletwsgi]
level = WARNING
handlers = stderr
qualname = eventlet.wsgi.server

[logger_root]
level=NOTSET
handlers=devel

[logger_ceilometer]
level=DEBUG
handlers=prod,debug
qualname=ceilometer

[logger_cinder]
level=DEBUG
handlers=prod,debug
qualname=cinder

[logger_glance]
level=DEBUG
handlers=prod,debug
qualname=glance

[logger_horizon]
level=DEBUG
handlers=prod,debug
qualname=horizon

[logger_keystone]
level=DEBUG
handlers=prod,debug
qualname=keystone

[logger_nova]
level=DEBUG
handlers=prod,debug
qualname=nova

[logger_swift]
level=DEBUG
handlers=prod,debug
qualname=swift

## HANDLERS ##

[handler_stderr]
class = StreamHandler
args = (sys.stderr,)
formatter = debug

[handler_devel]
class=StreamHandler
level=NOTSET
formatter=debug
args=(sys.stdout,)

[handler_file]
class=FileHandler
formatter=debug
args=('/var/log/openstack/openstack.log', 'w')
<commit_msg>Add quantum support in logger<commit_after>[loggers]
keys=root,ceilometer,cinder,glance,horizon,keystone,nova,quantum,swift,amqplib,sqlalchemy,boto,suds,eventletwsgi,<%= node["openstack"]["logging"]["ignore"].map{|k,v| k.gsub(/\W/, '_')}.join(',') %>

[formatters]
keys=normal,normal_with_name,debug,syslog_with_name,syslog_debug

[handlers]
keys=stderr,devel,prod,debug

## FORMATTERS ##

[formatter_debug]
format=[%(name)s]: %(asctime)s %(levelname)s %(module)s.%(funcName)s %(message)s

[formatter_normal]
format=%(asctime)s %(levelname)s %(message)s

[formatter_normal_with_name]
format=[%(name)s]: %(asctime)s %(levelname)s %(message)s

[formatter_syslog_with_name]
format=%(name)s: %(levelname)s %(message)s

[formatter_syslog_debug]
format=%(name)s: %(levelname)s %(module)s.%(funcName)s %(message)s

## LOGGERS ##

[logger_amqplib]
level = WARNING
handlers = stderr
qualname = amqplib

[logger_sqlalchemy]
level = WARNING
handlers = stderr
qualname = sqlalchemy
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARNING" logs neither.  (Recommended for production systems.)

[logger_boto]
level = WARNING
handlers = stderr
qualname = boto

[logger_suds]
level = INFO
handlers = stderr
qualname = suds

<% node["openstack"]["logging"]["ignore"].each do |k,v| %>
[logger_<%= k.gsub(/\W/, '_') %>]
level = <%= v %>
handlers = prod,debug
qualname = <%= k %>

<% end %>
[logger_eventletwsgi]
level = WARNING
handlers = stderr
qualname = eventlet.wsgi.server

[logger_root]
level=NOTSET
handlers=devel

[logger_ceilometer]
level=DEBUG
handlers=prod,debug
qualname=ceilometer

[logger_cinder]
level=DEBUG
handlers=prod,debug
qualname=cinder

[logger_glance]
level=DEBUG
handlers=prod,debug
qualname=glance

[logger_horizon]
level=DEBUG
handlers=prod,debug
qualname=horizon

[logger_keystone]
level=DEBUG
handlers=prod,debug
qualname=keystone

[logger_nova]
level=DEBUG
handlers=prod,debug
qualname=nova

[logger_quantum]
level=DEBUG
handlers=prod,debug
qualname=quantum

[logger_swift]
level=DEBUG
handlers=prod,debug
qualname=swift

## HANDLERS ##

[handler_stderr]
class = StreamHandler
args = (sys.stderr,)
formatter = debug

[handler_devel]
class=StreamHandler
level=NOTSET
formatter=debug
args=(sys.stdout,)

[handler_file]
class=FileHandler
formatter=debug
args=('/var/log/openstack/openstack.log', 'w')

{'fraction_non_alphanumeric': 0.15349642779822473, 'fraction_numerical': 0.0, 'mean_word_length': 8.094488188976378, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '6521111', 'n_tokens_mistral': 1843, 'n_tokens_neox': 1759, 'n_words': 310}