diff --git a/logging.ini b/logging.ini new file mode 100755 index 0000000..a130e89 --- /dev/null +++ b/logging.ini @@ -0,0 +1,38 @@ +[loggers] +keys=root,manager + +[handlers] +keys=consoleHandler,fileHandler + +[formatters] +keys=simpleFormatter, extensiveFormatter + +[logger_root] +level=DEBUG +handlers=consoleHandler,fileHandler + +[logger_manager] +level=DEBUG +handlers=consoleHandler,fileHandler +propagate=0 +qualname=manager + +[handler_fileHandler] +class=FileHandler +level=DEBUG +formatter=extensiveFormatter +args=('photoManager.log','w') + +[handler_consoleHandler] +class=StreamHandler +level=INFO +formatter=simpleFormatter +args=(sys.stdout,) + +[formatter_extensiveFormatter] +format=%(asctime)s [%(name)s] - %(levelname)s - %(message)s +datefmt=%H:%M:%S + +[formatter_simpleFormatter] +format=%(levelname)s - %(message)s +datefmt=%H:%M:%S \ No newline at end of file diff --git a/settings.ini b/settings.ini new file mode 100755 index 0000000..b20eb8d --- /dev/null +++ b/settings.ini @@ -0,0 +1,14 @@ + + +[sources] +keys = new, old + +[source.new] +root = /media/jev/Data/Photo +db = data/photo_new.db + +[source.old] +root = /media/jev/Data/Photo_old +db = data/photo_old.db + +