<commit_before>; ---------------------------------------------------------------------------------------
; Default configuration values for the coilmq broker.
;
; Do not modify this file; instead, copy over the coilmq.cfg-sample file in this 
; directory and customize that to your needs.  Those values will override any values
; here.
; ---------------------------------------------------------------------------------------

[coilmq]

listen_addr = 127.0.0.1
listen_port = 61613

; Backend implementation configuration.
; -------------------------------------
; Factories for implementations can be configured by passing a dotted-path.
; This is typically the path to a class or to a callable that returns a configured
; object (that implements the necessary functionality).  The reason to use a callable
; is in cases when the object may need to be initialized with values from the
; app's configuration.  (For example, a database storage engine will need to know
; the database connect URI.)

; Configuration backend used for storage
qstore.factory = coilmq.store.memory.MemoryQueue

; Configure some defaults for the DBM store
qstore.dbm.checkpoint_operations = 100
qstore.dbm.checkpoint_timeout = 20

; Configure the scheduler implementations used
scheduler.subscriber_priority_factory = coilmq.scheduler.FavorReliableSubscriberScheduler
scheduler.queue_priority_factory = coilmq.scheduler.RandomQueueScheduler

; Authentication configuration
; auth.factory = coilmq.auth.simple.make_simple
; auth.simple.file = coilmq/tests/resources/auth.ini

; ---------------------------------------------------------------------------------------
; The logging configuration will only be read from this config file if there is no
; coilmq.cfg file specified.  (There will be no merge of sections from coilmq.cfg with
; sections from this file.) 
; ---------------------------------------------------------------------------------------

[loggers]
keys=root,coilmq

[handlers]
keys=console,file,syslog

[formatters]
keys=threaded,syslog

[logger_root]
level=DEBUG
handlers=console,file,syslog

[logger_coilmq]
level=DEBUG
handlers=console,file,syslog
qualname=coilmq
propagate=0

[handler_console]
class=StreamHandler
level=DEBUG
formatter=threaded
args=(sys.stdout,)

[handler_syslog]
class=handlers.SysLogHandler
level=DEBUG
formatter=syslog
args=('/dev/log',)

[handler_file]
class=FileHandler
level=DEBUG
formatter=threaded
args=('/tmp/coilmq.log', 'w')

[formatter_syslog]
format=[%(threadName)s] %(name)s - %(levelname)s - %(message)s
datefmt= 

[formatter_threaded]
format=%(asctime)s [%(threadName)s] %(name)s - %(levelname)s - %(message)s
datefmt= <commit_msg>Remove anything but stdout from standard logging config.  (Nothing else is both compatible w/ Windows and w/ daemon mode on linux.)<commit_after>; ---------------------------------------------------------------------------------------
; Default configuration values for the coilmq broker.
;
; Do not modify this file; instead, copy over the coilmq.cfg-sample file in this 
; directory and customize that to your needs.  Those values will override any values
; here.
; ---------------------------------------------------------------------------------------

[coilmq]

listen_addr = 127.0.0.1
listen_port = 61613

; Backend implementation configuration.
; -------------------------------------
; Factories for implementations can be configured by passing a dotted-path.
; This is typically the path to a class or to a callable that returns a configured
; object (that implements the necessary functionality).  The reason to use a callable
; is in cases when the object may need to be initialized with values from the
; app's configuration.  (For example, a database storage engine will need to know
; the database connect URI.)

; Configuration backend used for storage
qstore.factory = coilmq.store.memory.MemoryQueue

; Configure some defaults for the DBM store
qstore.dbm.checkpoint_operations = 100
qstore.dbm.checkpoint_timeout = 20

; Configure the scheduler implementations used
scheduler.subscriber_priority_factory = coilmq.scheduler.FavorReliableSubscriberScheduler
scheduler.queue_priority_factory = coilmq.scheduler.RandomQueueScheduler

; Authentication configuration
; auth.factory = coilmq.auth.simple.make_simple
; auth.simple.file = coilmq/tests/resources/auth.ini

; ---------------------------------------------------------------------------------------
; The logging configuration will only be read from this config file if there is no
; coilmq.cfg file specified.  (There will be no merge of sections from coilmq.cfg with
; sections from this file.) 
; ---------------------------------------------------------------------------------------

[loggers]
keys=root,coilmq

[handlers]
keys=console

[formatters]
keys=threaded

[logger_root]
level=DEBUG
handlers=console

[logger_coilmq]
level=DEBUG
handlers=console
qualname=coilmq
propagate=0

[handler_console]
class=StreamHandler
level=DEBUG
formatter=threaded
args=(sys.stdout,)

[formatter_threaded]
format=%(asctime)s [%(threadName)s] %(name)s - %(levelname)s - %(message)s
datefmt= 
{'fraction_non_alphanumeric': 0.21950742767787335, 'fraction_numerical': 0.006645817044566067, 'mean_word_length': 2.53628196268141, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2197040', 'n_tokens_mistral': 1368, 'n_tokens_neox': 1297, 'n_words': 443}