example files added
This commit is contained in:
parent
b55792e5e3
commit
8e0dad4abc
11
docs/config_core/core_debug_sqlite.ini
Normal file
11
docs/config_core/core_debug_sqlite.ini
Normal 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
|
15
docs/config_core/core_production_mysql.ini
Normal file
15
docs/config_core/core_production_mysql.ini
Normal 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
|
26
docs/config_logging/logging_debug.yaml
Normal file
26
docs/config_logging/logging_debug.yaml
Normal 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]
|
28
docs/config_logging/logging_production.yaml
Normal file
28
docs/config_logging/logging_production.yaml
Normal 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]
|
Loading…
Reference in New Issue
Block a user