Added cfg/logging.py and cfg/main.py
This commit is contained in:
parent
0427d2586f
commit
f7a114ee44
3 changed files with 53 additions and 0 deletions
4
scripts/wk/cfg/__init__.py
Normal file
4
scripts/wk/cfg/__init__.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
'''WizardKit: cfg module init'''
|
||||
|
||||
import wk.cfg.logging
|
||||
import wk.cfg.main
|
||||
20
scripts/wk/cfg/logging.py
Normal file
20
scripts/wk/cfg/logging.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
'''WizardKit: Config - Logging'''
|
||||
# vim: sts=2 sw=2 ts=2
|
||||
|
||||
import logging
|
||||
|
||||
|
||||
DEBUG = {
|
||||
'level': logging.DEBUG,
|
||||
'format': '[%(asctime)s %(levelname)s] [%(name)s.%(funcName)s] %(message)s',
|
||||
'datefmt': '%Y-%m-%d %H:%M:%S %z',
|
||||
}
|
||||
DEFAULT = {
|
||||
'level': logging.INFO,
|
||||
'format': '[%(asctime)s %(levelname)s] %(message)s',
|
||||
'datefmt': '%Y-%m-%d %H:%M:%S %z',
|
||||
}
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
print("This file is not meant to be called directly.")
|
||||
29
scripts/wk/cfg/main.py
Normal file
29
scripts/wk/cfg/main.py
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
'''WizardKit: Config - Main
|
||||
|
||||
NOTE: A non-standard format is used for BASH/BATCH/PYTHON compatibility'''
|
||||
# pylint: disable=bad-whitespace
|
||||
# vim: sts=2 sw=2 ts=2
|
||||
|
||||
|
||||
# Features
|
||||
ENABLED_OPEN_LOGS = False
|
||||
ENABLED_TICKET_NUMBERS = False
|
||||
ENABLED_UPLOAD_DATA = False
|
||||
|
||||
# Main Kit
|
||||
ARCHIVE_PASSWORD='Abracadabra'
|
||||
KIT_NAME_FULL='WizardKit'
|
||||
KIT_NAME_SHORT='WK'
|
||||
SUPPORT_MESSAGE='Please let 2Shirt know by opening an issue on GitHub'
|
||||
|
||||
# Live Linux
|
||||
ROOT_PASSWORD='Abracadabra'
|
||||
TECH_PASSWORD='Abracadabra'
|
||||
|
||||
# Time Zones
|
||||
LINUX_TIME_ZONE='America/Denver' # See 'timedatectl list-timezones' for valid values
|
||||
WINDOWS_TIME_ZONE='Mountain Standard Time' # See 'tzutil /l' for valid values
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
print("This file is not meant to be called directly.")
|
||||
Loading…
Reference in a new issue