Browse Source

example files added

master
Notisset 5 years ago
parent
commit
8e0dad4abc
  1. 11
      docs/config_core/core_debug_sqlite.ini
  2. 15
      docs/config_core/core_production_mysql.ini
  3. 26
      docs/config_logging/logging_debug.yaml
  4. 28
      docs/config_logging/logging_production.yaml

11
docs/config_core/core_debug_sqlite.ini

@ -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

15
docs/config_core/core_production_mysql.ini

@ -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

26
docs/config_logging/logging_debug.yaml

@ -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]

28
docs/config_logging/logging_production.yaml

@ -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]
Loading…
Cancel
Save