maubot/example-config.yaml

43 lines
1.0 KiB
YAML
Raw Normal View History

2018-09-23 14:56:21 +00:00
database: sqlite:///maubot.db
2018-06-13 22:41:05 +00:00
# If multiple directories have a plugin with the same name, the first directory is used.
plugin_directories:
- ./plugins
server:
2018-09-23 14:56:21 +00:00
listen: 0.0.0.0:29316
base_path: /_matrix/maubot
2018-09-26 07:32:24 +00:00
admins:
- "@admin:example.com"
2018-09-23 14:56:21 +00:00
# Python logging configuration.
#
# See section 16.7.2 of the Python documentation for more info:
# https://docs.python.org/3.6/library/logging.config.html#configuration-dictionary-schema
logging:
version: 1
formatters:
precise:
format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
handlers:
file:
class: logging.handlers.RotatingFileHandler
formatter: precise
2018-09-26 07:32:24 +00:00
filename: ./logs/maubot.log
2018-09-23 14:56:21 +00:00
maxBytes: 10485760
backupCount: 10
console:
class: logging.StreamHandler
formatter: precise
loggers:
maubot:
level: DEBUG
2018-09-26 07:32:24 +00:00
mautrix:
level: DEBUG
2018-09-23 14:56:21 +00:00
aiohttp:
level: INFO
root:
level: DEBUG
2018-09-26 07:32:24 +00:00
handlers: [file, console]