update config files

pull/2720/head
karnigen 2024-02-12 22:44:46 +01:00
rodzic 8d36d2aaa0
commit a5bd301365
3 zmienionych plików z 54 dodań i 0 usunięć

3
.gitignore vendored
Wyświetl plik

@ -6,6 +6,7 @@ __pycache__
*.zip
*.tar.gz
*.po
*.log
dist/
build/
locales/
@ -21,6 +22,8 @@ locales/
# debug and profile files
/DEBUG.ini
/LOGGING.toml
/LOGGING[0-9]*.toml
/debug*
/.debug*
# old debug files

Wyświetl plik

@ -2,7 +2,20 @@
;;; use the pip installed version of inkex.py, default: True
; prefer_pip_inkex = False
[LOGGING]
;;; logging configuration file, default: none - use implicit DEBUG logging to inkstitch.log
;;; we may have multiple configurations: LOGGING.toml, LOGGING1.toml, LOGGING2.toml, etc.
; log_config_file = LOGGING.toml
;;; disable globally logging: default: False - using logging.disable()
;;; reenable logging.disable(0)
; disable_logging = True
[DEBUG]
;;; simulate frozen mode, overwrite running_as_frozen in inkstitch.py, default: False
; force_frozen = True
;;; select one active debug_type, default: none
; debug_type = vscode
; debug_type = pycharm

Wyświetl plik

@ -0,0 +1,38 @@
# logging/warning template for inkstitch
# format: toml
# enable config file in DEBUG.ini: log_config_file
# warnings.simplefilter(action), default: "default"
# - possible values: "error", "ignore", "always", "default", "module", "once"
warnings_action = "default"
# logging.captureWarnings() default: true
# - possible values: true, false
warnings_capture = true
# mandatory, must be an integer and 1
version = 1
# false - to keep existing loggers, not specified here
# true - to disable all loggers not specified here
disable_existing_loggers = false
[filters]
[formatters.simple]
format = "%(asctime)s [%(levelname)s]: %(filename)s.%(funcName)s: %(message)s"
[handlers.file]
class = "logging.FileHandler"
formatter = "simple"
filename = "%(SCRIPTDIR)s/inkstitch.log"
mode = "w"
[loggers.inkstitch]
level = "DEBUG"
handlers = [ "file",]
propagate = false
[loggers.root]
level = "DEBUG"
handlers = [ "file",]