example files added

This commit is contained in:
Notisset 2017-10-02 00:43:29 +02:00
parent b55792e5e3
commit 8e0dad4abc
4 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,11 @@
[GENERAL]
Address = 127.0.0.1
Port = 8009
[DATABASE]
Engine = sqlite
Path = autogestionale.db
[PRINTER]
Host = 192.168.1.100
Port = 9100

View File

@ -0,0 +1,15 @@
[GENERAL]
Address = 127.0.0.1
Port = 8009
[DATABASE]
Engine = mysql+pymysql
Host = 127.0.0.1
Port = 3306
Database = autogestionale
User = autogestionale
Password = secret
[PRINTER]
Host = 192.168.1.100
Port = 9100

View File

@ -0,0 +1,26 @@
version: 1
formatters:
default:
format: '[%(name)s %(levelname)s] %(message)s'
handlers:
console:
class: logging.StreamHandler
formatter: default
stream: ext://sys.stdout
file:
class: logging.FileHandler
formatter: default
filename: autogestionale.log
loggers:
sqlalchemy:
level: INFO
handlers: [console,file]
aiohttp:
level: INFO
handlers: [console, file]
autogestionale:
level: DEBUG
handlers: [console,file]

View File

@ -0,0 +1,28 @@
version: 1
formatters:
default:
format: '%(asctime)s %(levelname)-8s %(name)-30s %(message)s'
handlers:
console:
class: logging.StreamHandler
formatter: default
stream: ext://sys.stdout
file:
class: logging.handlers.RotatingFileHandler
formatter: default
filename: autogestionale.log
maxBytes: 1024
backupCount: 3
loggers:
sqlalchemy:
level: ERROR
handlers: [console,file]
aiohttp:
level: ERROR
handlers: [console, file]
autogestionale:
level: WARNING
handlers: [console,file]