Added cfg/logging.py and cfg/main.py

This commit is contained in:
2Shirt 2019-06-29 21:23:37 -06:00
parent 0427d2586f
commit f7a114ee44
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
3 changed files with 53 additions and 0 deletions

View 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
View 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
View 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.")