2022.12 #133

Merged
edraft merged 85 commits from 2022.12 into master 2022-12-25 11:58:35 +01:00
Showing only changes of commit 6818fe9a5c - Show all commits

View File

@ -1,3 +1,5 @@
import textwrap
from cpl_cli.abc.file_template_abc import FileTemplateABC from cpl_cli.abc.file_template_abc import FileTemplateABC
@ -8,4 +10,20 @@ class ProjectFileAppsettings(FileTemplateABC):
self._name = 'appsettings.json' self._name = 'appsettings.json'
def get_code(self) -> str: def get_code(self) -> str:
return self._code return textwrap.dedent("""\
{
"TimeFormatSettings": {
"DateFormat": "%Y-%m-%d",
"TimeFormat": "%H:%M:%S",
"DateTimeFormat": "%Y-%m-%d %H:%M:%S.%f",
"DateTimeLogFormat": "%Y-%m-%d_%H-%M-%S"
},
"LoggingSettings": {
"Path": "logs/",
"Filename": "log_$start_time.log",
"ConsoleLogLevel": "ERROR",
"FileLogLevel": "WARN"
}
}
""")