Skip to content

Commit

Permalink
added config files
Browse files Browse the repository at this point in the history
  • Loading branch information
sjev committed Jun 6, 2015
1 parent b59c1c4 commit a9c6ec5
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
38 changes: 38 additions & 0 deletions logging.ini
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions settings.ini
Original file line number Diff line number Diff line change
@@ -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


0 comments on commit a9c6ec5

Please sign in to comment.