kopia lustrzana https://github.com/inkstitch/inkstitch
update config files
rodzic
8d36d2aaa0
commit
a5bd301365
|
@ -6,6 +6,7 @@ __pycache__
|
||||||
*.zip
|
*.zip
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
*.po
|
*.po
|
||||||
|
*.log
|
||||||
dist/
|
dist/
|
||||||
build/
|
build/
|
||||||
locales/
|
locales/
|
||||||
|
@ -21,6 +22,8 @@ locales/
|
||||||
|
|
||||||
# debug and profile files
|
# debug and profile files
|
||||||
/DEBUG.ini
|
/DEBUG.ini
|
||||||
|
/LOGGING.toml
|
||||||
|
/LOGGING[0-9]*.toml
|
||||||
/debug*
|
/debug*
|
||||||
/.debug*
|
/.debug*
|
||||||
# old debug files
|
# old debug files
|
||||||
|
|
|
@ -2,7 +2,20 @@
|
||||||
;;; use the pip installed version of inkex.py, default: True
|
;;; use the pip installed version of inkex.py, default: True
|
||||||
; prefer_pip_inkex = False
|
; 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]
|
[DEBUG]
|
||||||
|
;;; simulate frozen mode, overwrite running_as_frozen in inkstitch.py, default: False
|
||||||
|
; force_frozen = True
|
||||||
|
|
||||||
;;; select one active debug_type, default: none
|
;;; select one active debug_type, default: none
|
||||||
; debug_type = vscode
|
; debug_type = vscode
|
||||||
; debug_type = pycharm
|
; debug_type = pycharm
|
||||||
|
|
|
@ -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",]
|
Ładowanie…
Reference in New Issue